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.
No exceptions ..
If I remember correctly you can test in word or explorer.
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.