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


Control Statements for the PROCESS-SECTION

The control statements available for use in the PROCESS-SECTION are:

Note: You must specify at least one LIST statement in the PROCESS-SECTION for TMSGRW to select records.

Every ACTION statement (REJECT or LIST) must be preceded by a WHEN statement.

To break a WHEN statement and continue it on a subsequent line, the AND or OR must be the first word on the continued line.

Use of WHEN Statement:

VALID

INVALID

PROCESS-SECTION
* TO GET VOLS EXPIRING *TOMORROW
WHEN EXPDT NE T-DATE
REJECT
WHEN VOLSER EQ VOLSER
LIST

PROCESS-SECTION
* TO GET VOLS EXPIRING *TOMORROW
WHEN EXPDT NE T-DATE
REJECT
LIST

PROCESS-SECTION
* TO GET ALL VOLUMES
WHEN VOLSER EQ VOLSER
LIST

PROCESS-SECTION
* TO GET ALL VOLUMES

LIST

PROCESS-SECTION

* TO GET ACTIVE VOLS

WHEN FLAG1 OFF SCR

AND FLAG1 OFF DEL

LIST

PROCESS-SECTION
* TO GET ACTIVE VOLS
WHEN FLAG1 OFF SCR AND
FLAG1 OFF DEL
LIST