ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

The new DATA-INTO opcode is here!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • The new DATA-INTO opcode is here!

    The latest enhancement for RPG is available for 7.2 and 7.3: The DATA-INTO opcode. It's like XML-INTO, but for any structured language, such as JSON. The big difference between DATA-INTO and XML-INTO is that you have to supply the parser for the structured language.

    But the source for a sample JSON parser is available with the PTFs.

    Here's the information about PTFs, the sample parser, where to find documentation: http://ibm.biz/data-into-rpg-opcode-ptfs

  • #2
    Is this a typing error?

    data-into myDs
    %date('myfile.json' : 'doc=file case=any countprefix=num')
    %parser('MYLIB/MYJSONPARS' : 'boolean=ind');


    Comment


    • #3
      Originally posted by corvair61 View Post
      Is this a typing error?

      data-into myDs
      %date('myfile.json' : 'doc=file case=any countprefix=num')
      %parser('MYLIB/MYJSONPARS' : 'boolean=ind');

      Oops! Thanks! It's fixed now.

      Comment


      • Whitecat27
        Whitecat27 commented
        Editing a comment
        i always, always gotta love Susan and Jon. Now all I gotta do is get the bosses to allow the PTF.

    • #4
      Here's a article by Jon Paris about DATA-INTO:

      Comment


      • #5
        Sorry, spotted another typo in the wiki page - the link to the 7.2 version documentation at the bottom actually points to 7.3

        Comment


        • #6
          Originally posted by Vectorspace View Post
          Sorry, spotted another typo in the wiki page - the link to the 7.2 version documentation at the bottom actually points to 7.3
          Thanks! It's fixed now.

          Comment

          Working...
          X