Previous Topic: Unique TMSGRW KeywordsNext Topic: Control Statement Specification


Job Control Statements

//stepname EXEC PGM=TMSGRW[,PARM='[DATEFMT=(fmt),][NOLIST,]SCAN=xx'][,REGION=1M] //STEPLIB DD DSN=CAI.CTAPLINK,DISP=SHR //TMSRPT DD SYSOUT=A [//anyname1 DD DSN=dsname,DISP=SHR ] [//anyname2 DD DSN=include.dsn,DISP=SHR ] [//OUTPUT DD DSN=tape.output,DISP=(NEW,KEEP),UNIT=TAPE] //SORTLIB DD DSN=SYS1.SORTLIB,DISP=SHR //SYSOUT DD SYSOUT=A //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) /*

Parameter Definitions

DATEFMT=(fmt)

Specifies the date format to be printed on reports generated by TMSGRW. The date pattern indicated by (fmt) is limited to 10 bytes and must be enclosed in parentheses. This parameter is optional. For more information on valid date formats, see Overriding the Preferred Date Pattern.

SCAN={72|xx}

Is the number of positions that are to be scanned when reading the data pointed to by the SYSIN DD. The default is 72.

NOLIST

Specifies that the control statements are not to be listed when TMSGRW is executed.

JCL Considerations

anyname1

Is any site-defined ddname. This DD statement is optional and defines the data set from which records are selected to produce the report. If TMC is specified, CA 1 macros are used to read sequentially through the TMC. In addition, READ access to the TMC is required. Any other ddname will result in QSAM access of the data set. See the ALTER control statement information in CONTROL-SECTION in the following topics.

anyname2

Is the ddname of a partitioned data set pointed to by an INCLUDE control statement. There may be as many DD statements of this type as there are INCLUDEs, which require different data sets. This DD statement is optional.

OUTPUT DD

Defines a sequential file that contains all TMC records selected by PROCESS-SECTION logic. The LRECL is the same as the input file. Records are sorted in the same order as the report. This DD statement is optional.