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