In order for the DSN criteria to work, the following must be done:
- An SMF 15 record is generated when the data set is created. (Programs such as IEFBR14 does not generate a SMF 15 record or a rename of a dataset.)
- The schedule or job criteria record must contain: DSN datasetname.
- The CA ENF event DSCLOSE must be activated. See CA Scheduler JM SAMPJCL(ISTEP24) member.
- The CA Scheduler JM option CAS9 ENF DSCLOSE must be set to YES.
Note that when the DSCLOSE event is activated, every file I/O will trigger an event. Therefore, to avoid unnecessary overhead, the DSCLOSE event must be filtered out using the following ENF commands:
SELECT(DSCLOSE,DSN,EQ,my.test.data) = all I/O to "my.test.data" is captured by CA ENF., I/O to other data sets are not captured.
SCREEN(DSCLOSE,ACCESS,EQ,INPUT) = blocks out the DSCLOSE event if the data set is open read-only.
The SELECT and SCREEN commands are CA ENF startup options.
Caution: Depending on your site processing and the volume of data set closes, the use of DSN criteria may not be recommended. Processing large numbers of DSCLOSE events can cause performance issues with CA Scheduler JM.