Steps to setup EXPLICIT data set trigger.
Steps to set up an EXPLICIT dataset triggers
1. You can add EXPDSTRG VERIFY or NOVERIFY to ESP initialization parameter This is optional and the default is NOVERIFY.
2. Create an event or Application that contains the DSTRIG xxx.yyy.zzz EXPLICIT statement.
3. Create a batch job to execute the ESPDST program. If a dataset is being created, run the ESPDST program after the dataset is created.
Run TSO command: TSO ESPDST D(PDS.DATA.SET(MEMBERx))
1. Code init parm - The example below does not check to see if the person has access or if the file exists.
EXPDSTRG NOVERIFY
2. Create an Event
/*************************************************/
/* DEFINED BY <user> */
/*************************************************/
EVENT ID(<eventnm>.DSTRIG_EXPLICIT) SYSTEM(XXXX) REPLACE
SEND 'EXPLICIT DSTRIG WORKED' USER(<user>)
DSTRIG <hlqxxx.libr(MEMBER1) EXPLICIT
ENDDEF
3. Create a batch job using example below
//STEP2 EXEC PGM=ESPDST,COND=(0,LT),
// PARM='DSNAME(ABC.DATA.SET(MEMBER1)) SUBSYSTEM(ESPx)'
//STEPLIB DD DISP=SHR,DSN=hlq.CD7YLOAD
Note:
EXPLICIT data set triggering is used in cases where an SMF 14 or 15 record is not created.
EXPLICIT data set triggering can be defined at the EVENT or APPLication level and is satisfied by running a batch job, or a page mode command.