We have a unique solution for parsing from XML files directly to Cobol copy structures so that from the receiving Cobol program point of view it is completely transparent – thus eliminating the
need for understanding XML or in any way taking into account the fact that the input data source stems form an XML protocol.
We are distributing this freely.
The IBM supplied so called "parser" will not provide what you need. It just runs a loop on the XML content – the main issue is correctly converting this unstructured data for
for further downstream processing .

From: "RMiklos@xxxxxx" <RMiklos@xxxxxx>
To: COBOL Programming on the iSeries/AS400 <cobol400-l@xxxxxxxxxxxx>
Sent: Wednesday, October 19, 2011 9:35 AM
Subject: Re: [COBOL400-L] COBOL XML Parser?


I tried XML PARSE some years ago and had problems with encoding of XML
In that time I have posted some questions in this mailing list:
and at Tek-Tips:
You can find an example in the ILE COBOL Programmer’s Guide

Since then I solved the problem with encoding. I have now a working
example, but I never used XML PARSE in production.
I used in production only XML GENERATE



19.10.2011 10:23
[COBOL400-L] COBOL XML Parser?
Sent by:


I've been looking for something to parse simple XML-files into DB2-files,
and in midrange.com I find this:

'COBOL has an XML parser built in starting with V5R3.'

Anyone of you who have used this - or can direct me to examples of use?

Mvh. / Regards / Terveisin


"Keep it simple!"

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.