Receiving an XML file to RPG

5 pts.
Tags:
AS/400 development
AS/400 import/export
RPG
RPG/400
RPGLE
XML
Hi, I need to receive XML files (of fixed format) to my RPGLE program (not free format RPG) and do some calculations. Can I do this without purchasing any tools (free tools can be used)? Please let me know if anyone has done something similar.

Regards,
Kiron

Answer Wiki

Thanks. We'll let you know when a new response is added.

There are two built in operation codes in RPG IV, as of V5R4. These are supported in either fixed or free form.

And here’s a similar question with some additional information: Looking for good AS/400/RPG-XML translator software package.

Some of the tools are also freely available for download. Scott Klement has some very good ones.

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Stank
    Bob Cozzi just did a Tuesday tip yesterday on the use of XML-INTO. That could be a great place to start. A web search for Cozzi and Tuesday tips.
    10 pointsBadges:
    report
  • Yorkshireman
    Exciting though it is to explore RPG's native opcodes for XML, why would you want to do that. I admire Bob Cozzi's stufff greatly, but in this case it's nowhere near as good as the Freeware HTTP tools originated by Scott Klement. go here and sign up and check it out. XML-INTo gives you a knife blade that needs sharpening - HTTP tools gives a Swiss Army knife ready to go (example code for most siutuations) . and the forum gives you the squaddies to ensure support and answers. Just my opinion, of course.
    report
  • TopKat
    I agree with Yorkshireman. We use Klement's tools without any problems.
    135 pointsBadges:
    report
  • BigKat
    To Yorkshireman and TopKat: Why would you want to explore XML-INTO and XML-SAX? Well, if all you have is a hammer, everything looks like a nail. And maybe XML-INTO is a little crude (at this version) but everything starts somewhere... Also, what if there becomes a time that there is an intellectual property issue using Klements tools and you don't know anything else... Just trying to say it is always good to know options... BigKat
    8,330 pointsBadges:
    report
  • Yorkshireman
    BigKat has a good point. You want to avoid any potential future IPR issues. So, as first suggested, write your own with RPG. I have a bit of code which handles screens down at the metal level, and if ever I want to handle all 1920 characters individually I know how to do it. Meanwhile though, I'll just use DDS, or, better, a code generator. Incidentally, it's also worth discovering that Bob licences his software, in order to make a living, and Scott Klements's is already in the public domain - so you will 'own' the source code. If it were me, I'd experiment with the native RPG, then I know which open source software I'd download. - No affiliation to either of these toolsets -
    5,580 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following