XMLGEN function
The XMLGEN function creates XML documents from existing files using COBOL or PL/I layout fields as the tag names. The XML document is output to an existing, or new, data set using any number of subsequent records.
If your input file is a PDS, you must use the MEMBER or MEMBERS parameter to identify the member(s) to process.
Use the OUT parameters with the XMLGEN function to control the number of records to generate as an XML document. The default is all records. The INVALID parameter specifies how to process data that is inconsistent with the format of the layout field.
Example:
In this example, File-AID generates an XML document for all records in the input file using the EMPLOYEE record layout member and it skips the field data that is invalid.
To use XMLGEN with an XREF, add the DDxxXR DD card naming the XREF dataset name and XREF member name . This is in addition to the DDxxRL DD card for the layout data set. The LAYOUT parameter is not used when an XREF is specified.