Output files

By default, Workload Automation Programming Language does not generate any output from a LIST or SELECT command. To generate an output, you must specify OUTPUT statements to define the segments and fields to be extract.

You can produce two kinds of output:
DATA
It is produced in ISPF Streamed Output Notation (ILSON). This notation allows you to easily read and update the records from your own programs, without having to know much about the underlying record structure. DATA records are written as a result of LIST and SELECT requests. If LIST is performed with SELECT(Y), the output is written only for the subsequent SELECT action, avoiding duplication of common segments.
LOADER
Also known as Batch Loader, this is a structured text representation of a database object that you can use to define an object in the database. Batch Loader records are written only as a result of a SELECT request.
Use the OUTPUT statement to define what records you want to extract, and in what format. This statement defines also where the output is sent.

Use LOADDEF to load predefined sets of statements. The predefined statements generate both DATA and LOADER output for every field available for each segment. By default, DATA is sent to DD statement OUTDATA and LOADER is sent to DD statement OUTBL.

For example, to load:
  • OUTPUT statements for every segment available, specify LOADDEF *
  • OUTPUT statements for all the segments in an application definition, specify LOADDEF AD*
  • Application definition statements and turn off batch loader, specify LOADDEF AD* LOADER(-)
  • Application definition statements, turn off batch loader, and send DATA output to the external data queue, specify LOADDEF AD* LOADER(-) DATA(*)