Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


Producing XML output

You can produce XML output from a COBOL program by using the XML GENERATE statement. In the XML GENERATE statement, you can also identify a field to receive a count of the number of characters of XML output generated, and a statement to receive control if an exception occurs.

To produce XML output, use:

After you transform COBOL data items to XML, you can use the resulting XML output in various ways, such as deploying it in a Web service, writing it to a file, or passing it as a parameter to another program.

related tasks
Generating XML output
Enhancing XML output
Controlling the encoding of generated XML output
Handling errors in generating XML output


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)