Previous Topic: Report DescriptionNext Topic: Comment Statement


Job Control Statements

//stepname EXEC PGM=TMSDATA
//STEPLIB  DD  DSN=CAI.CTAPLINK,DISP=SHR
//TMSRPT   DD  SYSOUT=A
//SYSUT1   DD  DSN=CAI.CA1.TMC,DISP=SHR
//SYSUT3   DD  DSN=tapetmc,UNIT=SYSDA,DISP=(NEW,CATLG,DELETE),
//          SPACE=(CYL,5)[,DCB=BLKSIZE=n*340]                    *NOTE
//SYSUT4   DD  DSN=tapedsnb,UNIT=SYSDA,DISP=(NEW,CATLG,DELETE),
//          SPACE=(CYL,5)[,DCB=BLKSIZE=n*170]                    *NOTE

Note: See the following JCL Considerations for the default block size.

If sort is requested, add the following:

//TMSRPT   DD  SYSOUT=A
//SORTLIB  DD  DSN=SYS1,SORTLIB,DISP=SHR
//SORTWK01 DD  UNIT=SYSDA,SPACE=(TRK,(2,2),CONTIG)
//SORTWK02 DD  UNIT=SYSDA,SPACE=(TRK,(2,2),CONTIG)
//SORTWK03 DD  UNIT=SYSDA,SPACE=(TRK,(2,2),CONTIG)
//SORTWK04 DD  UNIT=SYSDA,SPACE=(TRK,(2,2),CONTIG)
//SORTWK05 DD  UNIT=SYSDA,SPACE=(TRK,(2,2),CONTIG)
//SORTWK06 DD  UNIT=SYSDA,SPACE=(TRK,(2,2),CONTIG)
//SYSIN    DD  *
(control statements here)
/*

JCL Considerations

SYSUT1 DD

Defines your TMC.

SYSUT3 DD

Defines the output data set that will contain the TMC volume records. The default block size is 32640 for tape or 8840 for DASD devices. The layout of this file can be found in the Programming Guide.

SYSUT4 DD

Defines the output data set that will contain the DSNB records. The default block size is 32640 for tape or 9010 for DASD devices. The layout of this file can be found in the Systems Programmer Guide under TMC DSN Record Definition.

Control Statement Definition

SORTTMC

Is the control statement identifier. It must begin in position 1 and be terminated by a space. SORTTMC instructs the program to sort the TMC Volume records in the specified sequence.

SORTDSNB

Is the control statement identifier. It must begin in position 1 and be terminated by a space. SORTDSNB instructs the program to sort the DSNB records in the specified sequence.

keyword

Valid keywords are listed in the Programming Guide. At least one keyword must be specified. A maximum of 20 keywords may be used with SORTTMC, and a maximum of 12 keywords may be used with SORTDSNB.

sequence

Defines the sequence order for the keyword. If specified, the sequence must be enclosed in parentheses. Valid sequences are:

A

Ascending order (default)

D

Descending order

If more than one keyword (sequence) is required, they must be separated by a comma and there must be at least one blank following the last keyword. If more than one statement is needed for one sort, repeat the SORT verb in the next statement and continue with the next keyword in the sort sequence.