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,

After you transform COBOL data items to XML, you can use the resulting XML output in various ways, such as passing it as a message to WebSphere MQ, or transmitting it for subsequent conversion to a CICS communication area.

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