DD statements

ZCATOU
Specifies the name of the ZCAT output data set. This data set can then be used as the input to the Usage Import program, where usage details are imported into the database. If the ZCATOUT DD card is omitted, ZCAT by default writes to a data set having the name hlq.Dyyyyddd.Uhhmmsst (U instead of T implied by the high level qualifier (hlq) option for input data sets), where yyyyddd and hhmmsst refer to the date and time timestamp of the first processed input data set.
ZCATDETL
If the ZCATDETL DD is allocated, all records are written to this data set. This data set includes any non condensed and non diagnostic data that is not written to the ZCATOUT data set. It enables the Job name, user ID, and job account details (which are ignored due to ZCAT options and are not written to the ZCATOUT file) to be archived into the detail file.

The ZCATDETL and ZCATOUT data sets are compressed data sets written by the ZCAT utility.


//ZCAT EXEC PGM=HZAZCAT,PARM=’UMDSN(ZAO.**),JNM=N’
//STEPLIB DD DISP=SHR,DSN=HZADEV.V110.SHZAMOD1
//ZCATOUT DD DSN=&SYSUID..ZAO.ZCATOUT,
//	DISP=(NEW,CATLG),UNIT=SYSDA,SPACE=(CYL,(50,50),RLSE),
//	DCB=(DSORG=PS,RECFM=VB,LRECL=27994,BLKSIZE=27998)
//ZCATDETL DD DSN=&SYSUID..ZAO.ZCATDETL,
//	DISP=(NEW,CATLG),UNIT=SYSDA,SPACE=(CYL,(50,50),RLSE),
//	DCB=(DSORG=PS,RECFM=VB,LRECL=27994,BLKSIZE=27998)
//SYSPRINT DD SYSOUT=*,HOLD=YES

In this example, all data sets having names of ZAO.*.*.D%%%%%%%.T

%%%%%%% are processed due to the UMDSN parameter. The condensed output is written to sysuid.ZAO.ZCATOUT where the SYSUID system symbol is the user ID of the person submitting the job. The file is then transmitted for Usage Import processing. The JNM=N parameter instructs the utility to condense job names and ignore the original job name distinction. All valid records are written to the ZAO.CATDETL, which is then archived for reference purposes.