Previous Topic: PROCESS-SECTION Control StatementNext Topic: Action Control Statement


WHEN Control Statement

The WHEN control statement defines the test used to determine if the TMC or Audit record is to be selected for printing. The format for the WHEN control statement is:

         [ AND ]          [ AND ]
WHEN le  [ OR  ]  le  ... [ OR  ] le

Control Statement Definition

le is either:

Every WHEN control statement is terminated by an ACTION control statement. You find the valid keywords in the Programming Guide. If you use DSNB=YES or DSNB=FAST, the DSNB record is mapped into the volume definitions. The fields are mapped as follows:

DSNB Keyword Mapping using DSNB=FAST

VOLUME

DSNB

Note

 

BID

Not mapped, not available for reporting

 

ACTIND

Not mapped, not available for reporting

FLAG1

FLAG1

 

LSTDSNB

CURRDSNB

 

 

PREV

Not mapped, not available for reporting

1STDSNB

NEXT

 

VOLSER

VOLSER

 

 

F1STVSN

Not mapped, not available for reporting

NUMDSNB

FILSEQ

 

DSN

DSN

 

EXPDT

EXPDT

 

CDATE

CDATE

 

CTIME

CTIME

 

CJOB

CJOB

 

CSTEP

CSTEP

 

LRECL

LRECL

 

BLKSIZE

BLKSIZE

 

BLKCNT

BLKCNT

 

RECFM

RECFM

 

BATCHID

BATCHID

 

HOOKID

HOOKID

 

AUDATE

AUDATE

 

AUTIME

AUTIME

 

USERID

USERID

 

CPUID

CPUID

 

AUCODE

AUCODE

 

AUFLAG1

AUFLAG1

 

DSNB Keyword Mapping using DSNB=YES

VOLUME

DSNB

Note

 

BID

Not mapped, not available for reporting

 

ACTIND

Not mapped, not available for reporting

FLAG1

FLAG1

 

LSTDSNB

CURRDSNB

 

 

PREV

Not mapped, not available for reporting

1STDSNB

NEXT

 

 

VOLSER

Not mapped, not available for reporting

VOLSER

F1STVSN

 

NUMDSNB

FILSEQ

 

DSN

DSN

 

EXPDT

EXPDT

 

CDATE

CDATE

 

CTIME

CTIME

 

CJOB

CJOB

 

CSTEP

CSTEP

 

LRECL

LRECL

 

BLKSIZE

BLKSIZE

 

BLKCNT

BLKCNT

 

RECFM

RECFM

 

BATCHID

BATCHID

 

HOOKID

HOOKID

 

AUDATE

AUDATE

 

AUTIME

AUTIME

 

USERID

USERID

 

CPUID

CPUID

 

AUCODE

AUCODE

 

AUFLAG1

AUFLAG1

 

OUTCODE

 

Obtained from the volume and does not have a similar field in the DSNB record.

OUTDATE

 

Obtained from the volume and does not have a similar field in the DSNB record.

SLOT

 

Obtained from the volume and does not have a similar field in the DSNB record.