IBM Z and LinuxONE Languages

Languages

Languages

Broad range of supported development languages and tools allows to transform software delivery practices.

 View Only
  • 1.  COBOL - JSON GENERATE with suppression

    Posted Mon January 27, 2020 08:59 AM

    Is there some specific reasoning as to why the JSON GENERATE statement does not support "conditional suppression" in a manner similar to the XML GENERATE statement?

     

    Specifically, with XML GENERATE you can do something like the following:

     

    xml generate my-document from my-data

                 name my-field is 'myField'

                 suppress my-field when low-values

     

    In this example, if you moved low-values to my-field then no myField element would be generated.

    I'm not as familiar with the "rules" of JSON, but I'm thinking it might make sense for something similar...?

     

    Frank

     


    The information contained in this electronic communication and any document attached hereto or transmitted herewith is confidential and intended for the exclusive use of the individual or entity named above. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any examination, use, dissemination, distribution or copying of this communication or any part thereof is strictly prohibited. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy this communication. Thank you.


  • 2.  RE: COBOL - JSON GENERATE with suppression

    Posted Mon February 03, 2020 09:31 AM
    Edited by Dan Zhang Mon February 03, 2020 09:58 PM
    Hi Frank,

    Thanks for your concerns about conditional suppression with JSON GENERATE. We decided to investigate this further to evaluate the Pros and Cons and see if any updates are needed.

    ------------------------------
    Dan Zhang
    Content Designer for IBM COBOL Compilers
    ------------------------------



  • 3.  RE: COBOL - JSON GENERATE with suppression

    Posted Tue February 04, 2020 01:39 PM
    ​Thanks Dan.
    Once a decision is made I'd love it if you'd post the decision here.
    Thanks,
    Frank

    ------------------------------
    Frank Swarbrick
    ------------------------------



  • 4.  RE: COBOL - JSON GENERATE with suppression

    Posted Wed February 05, 2020 02:43 AM
    Sure, Frank.

    ------------------------------
    Dan Zhang
    Content Designer for IBM COBOL Compilers
    ------------------------------