How to activate the CA Scheduler Job Management DSN criteria to kick off a job at a close of a data set?

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

The DSN criteria keyword is coded on a schedule or job criteria record when that schedule or job must wait for a file to be updated before the schedule or job can run. This Knowledge Document describes what needs to be done to activate this predecessor.

Instructions:

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.

Additional Information:

As always, please contact CA Technologies support for CA Scheduler if you have further questions.