How can I trigger a data set triggered event if my dataset creation/update does not create the necessary SMF records?

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

Use Explicit data set trigger.

What you need to know to use Explicit data set triggers:

  1. Must have PTF SU00233 applied to Workload Manager 5.3 system. Not available for older versions of ESP Workload Manager.

  2. Program CYBESDT1 writes an SMF record type 132 subtype 1.

  3. Is defined to ESP Workload Manager via the EXPLICIT parameter in the DSTRIG command or in the DSNAME statement.

  4. CYBESDT1 may execute in batch, TSO, started task, or run task environment(ex. Connect:Direct(NDM)).

In the following example, STEP1 creates or updates MEMBER1 in the data set PDS.DATA.SET. If STEP1 completes successfully, STEP2 notifies ESP Workload Manager subsystem, ESPS, through an explicit data set trigger that data set PDS.DATA.SER(MEMBER1) has been created or updated.

    //DSTRIG01 JOB ...
    //*
    //STEP1 EXEC PGM=IEBGENER
    //SYSPRINT DD SYSOUT=*
    //SYSIN DD DUMMY
    //SYSUT1 DD DISP=SHR,DSN=SEQ.DATA.SET
    //SYSUT2 DD DISP=OLD,DSN=PDS.DATA.SET(MEMBER1)
    //*
    //STEP2 EXEC PGM=CYBESDT1,COND=(0,LT),
    // PARM='DSNAME(PDS.DATA.SET(MEMBER1)) SUBSYSTEM(ESPS)'
    //STEPLIB DD DISP=SHR,DSN=CYBER.SSCPLINK

/*************************************************/ /* DEFINED BY CYBUSER AT 14.30 ON MON 5MAY2003 */ /*************************************************/ EVENT ID(CYBUSER.DSTRIG_EXPLICIT) SYSTEM(ESPS) REPLACE SEND 'EXPLICIT DSTRIG WORKED' USER(CYBUSER) DSTRIG PDS.DATA.SET(MEMBER1) EXPLICIT ENDDEF

This Frequently Asked Question applies to all supported releases of ESP Workload Manager beginning with 5.3.