TMSGRW, How to select records based on a date field.

Document ID : KB000028494
Last Modified Date : 14/02/2018
Show Technical Document Details

If you need to compare the EXPDT field to one of the CA 1 keyword dates you can use the DT format to define the date.

In the DEFINE the value can be any date in your selected date format (see your TMOOPTxx member and the option of DATEFMT),

a julian date (yyyy/ddd) or a date keyword.  The keywords include, USER/uuu, CATLG/ddd, LDATE/ddd, CYCLE/ccc, PERM, PERMANENT,

STATS/nnn and CATALOG.

This is an example of how to compare and list all tapes under catalog control.

CONTROL-SECTION

DEFINE CATDATE DT 'CATALOG'

PROCESS-SECTION

WHEN EXPDT EQ CATDATE

LIST

REPORT-SECTION

PRINT VOLSER

PRINT EXPDT

PRINT DSN