This example uses the SMSDATA keyword to extract the construct
definitions from a named SCDS.
//COLLECT5 JOB ...
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//OUTDS DD DSN=USER.DCOLLECT.OUTPUT,
// STORCLAS=LARGE,
// DSORG=PS,
// DCB=(RECFM=VB,LRECL=32756,BLKSIZE=0),
// SPACE=(1,(10,10)),AVGREC=K,
// DISP=(NEW,CATLG,KEEP)
//SYSIN DD *
DCOL -
OFILE(OUTDS) -
SMSDATA(SCDSNAME(SYSPROG.SCDS.SYSTEMA))
/*
Job control language statement:
- OUTDS describes the sequential output data set where records from
data collection are written. The LRECL is set to 32756, which is
the largest record size that can be handled by DCOLLECT. You do not
need to change the JCL each time a DCOLLECT record is extended.
The DCOLLECT command defines which data is to be collected.
Parameters are:
- OFILE identifies the output data set ('USER.DCOLLECT.OUTPUT')
by ddname.
- SMSDATA collects construct data from the named SCDS. In this
example, the SCDS is named SYSPROG.SCDS.SYSTEMA.