Information
Space announcement: BMC provides limited support for this version of the product. As a result, BMC no longer accepts comments in this space. If you encounter problems with the product version or the space, contact BMC Support.

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.


Warning

Important

Excluded records and fields are not used when generating an XML document. If the file has segmented records defined with an XREF member, File-AID internally issues NEXT commands to format each segment of each record.

REDEFINES and FILLER fields are not used when generating an XML document. If you display only REDEFINES and/or FILLER fields, or the layout contains only these fields, XMLGEN terminates without generating an XML document.

Example:

$$DD01 XMLGEN INVALID=SKIP,LAYOUT=EMPLOYEE

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.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Compuware File-AID/MVS 21.01