Previous Topic: ACTIVITY Data SetNext Topic: Job Control Statements


DEFAULTS Data Set

The data in the DEFAULTS data set is positional. The location of the data must be defined to TMSCONVR using SYSIN control statements. The format of the SYSIN control statements is defined on n.

Each record in the ACTIVITY data set is matched by data set name with a record in the DEFAULTS data set. For each record matched, one output record (or a group of output records, as in the case of TMSUPDTE output) is generated. Data in the ACTIVITY data set overrides the corresponding data in the DEFAULTS data set when the two matched records are merged for output. The DEFAULTS data (defined by the SYSIN control statements) that is not specified on the ACTIVITY data set is moved into the output record.

If there is a data set name in the ACTIVITY data set that is not matched with a DEFAULTS data set record, or vice versa, no output record is generated for that data set name. There must be a matching data set name for a record to be output. Field and data are bypassed when the field contains only blanks, binary zeros or packed zeros.

The DEFAULTS data set must not contain duplicate records. If more than one physical record makes up one logical record, this must be indicated to TMSCONVR by use of the DEFAULTS= parameter.

DEFAULTS Data

DSN

EXPDT

CJOB

CDATE

ABC

 

JOB1

341/YYYY

DEF

360/YYYY

JOB2

342/YYYY

JKL

324/YYYY

JOB3

343/YYYY

MNO

120/YYYY

JOB4

344/YYYY

ACTIVITY Data

DSN=ABC,VOLSER=012345,EXPDT=99000

DSN=DEF,VOLSER=123456

DSN=GHI,VOLSER=234567,CJOB=MAKE1

VOLSER=345678,DSN=JKL,CJOB=MAKE2

SYSIN Data

DSN=(1,5,CH)

EXPDT=(10,10,CH,DATEFMT=(DDD/YYYY))

CJOB=(20,8,CH)

CDATE=(30,10,CH,DATEFMT=(DDD/YYYY))

Output Records for TMSUPDTE

VOL

012345,NODSN

REP

DSN=*ABC*

REP

CDATE=*MMMDD YYYY*

REP

EXPDT=*CATALOG*

REP

CJOB=*JOB1*

VOL

123456,NODSN

REP

DSN=*DEF*

REP

CDATE=*MMMDD YYYY*

REP

EXPDT=*MMMDD YYYY*

REP

CJOB=*JOB2*

VOL

345678,NODSN

REP

DSN=*JKL*

REP

CDATE=*MMMDD YYYY*

REP

EXPDT=*MMMDD YYYY*

REP

CJOB=*MAKE2*

Note: There are no TMSUPDTE output records created for data sets MNO (DEFAULTS input) and GHI (ACTIVITY input). For an output record to be created, there must be a matching data set name for the DEFAULTS data set and the ACTIVITY data set.