405 pts.
Can anyone please help this poor guy... that's me...I need to know how to code on RPG/ILE to transfer XML code to the customer..Do I use flat files? Please help me..

Answer Wiki

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

Yes – flat file.
I think there are some generation tools but you can also write these using RPG
Just remember every tag must match an end tag and nesting must be correct.
<Tag> </Tag>

No exceptions ..
If I remember correctly you can test in word or explorer.



Hi Devan,

Initially you need to build your XML to send it to your customer. There is many ways to do that.
– You can have a XML template on a variable in memory and place the values on it
– You can use a payed tool to do that
– You can use CGIDEV2 which use a template in a STMF

After that, the problem is how do you intend to send it to your customer? Consuming a web service on your customer web site? An attachment to an e-mail? In each case there is tools to do that.

Give me some additional information about what you want to do to give you more details.



<i>Do I use flat files?</i>

There are at least three different definitions of the term “flat file” that I’m aware of. Two of those should indicate the answer is “No” to your question. The third would answer “Yes.”

If you mean a ‘flat file’ like a single-field program-described physical file, then “No.” If you mean it like files in a mainframe hierarchical file structure, it’s again “No.”

Both of those are possible, but neither is clean nor appropriate for long-term XML file manipulation.

If you mean a non-database streamfile in a directory in the /root file system, then “Yes.” That’s how XML is intended to written and read and transferred. You get full control over line lengths. And you get full control of CCSIDs for the entire streamfile, for each line in the streamfile and potentially even each character in each line.


Discuss This Question: 1  Reply

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.
  • Sloopy
    I have some example code to create XML from AS/400 database files. Email me at john.blenkinsop@ne.nykline.com and I will send you the sample code. Regards, Sloopy
    2,195 pointsBadges:

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.

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


Share this item with your network: