OUTPUT and LOADDEF

Use the OUTPUT statement to determine which segments and fields are to be extracted.

When a record is retrieved from HCL Workload Automation for Z using the SELECT statement, the entire record is retrieved and the header is processed to identify each segment. The segment is then processed only if there is a reference to it. If you code only OUTPUT statements for the segments you need, the processing is reduced.

Record processing involves extracting every field in the segment, creating a data output record for the segment, running a Segment Processing Exit (if requested,) and generating Batch Loader. Some of this processing is avoided if you code only OUTPUT statements for the fields from which you require data.

Use the LOADDEF command to load in-built OUTPUT statements. The following example shows how to load definitions of every field for every segment. Use this command only when you need to extract entire objects, for example for Batch Loader generation.
LOADDEF *
To load OUTPUT definitions for particular records, use LOADDEF in a more selective way. For example, to load the in-built OUTPUT statements for the Application Definition records specify:
LOADDEF AD*

Restricting OUTPUT statements to just the Segments and Fields you need reduces the amount of processing that Workload Automation Programming Language performs, both in the amount of OUTPUT statements that must be parsed at startup, and in the amount of segments that are processed when records are retrieved.