How do you abandon a file trigger(or DSTRIG) with CA Workload Automation ESP Edition.

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

QUESTION:

Can you abandon submission of a file trigger or a DSTRIG at a specific time? The ABANDON command does not work so how should this be done?

ANSWER:

You would use a link process job to complete the DSTRIG or file trigger. The following explains how to do this.

1) You have a DSTRIG like this:

DSTRIG DSN1.FILE  
  DSNAME 'ROZRIA1.DSN1'   
  RELEASE ADD(ROZRIA1B)   
  RELEASE ADD(ROZRIA1A)   
  RUN NOW   
ENDJOB  

2) To abandon the DSTRIG at 11:00, you would add a link process to the procedure. The LINK PROCESS will issue an Appljob(AJ) command to force complete the file trigger or DSTRIG.

JOB REL.LINK LINK PROCESS  CONDITIONAL
    RUN NOW     
    DELAYSUB 11:00   
    ESP AJ DSN1.FILE COMPLETE APPL(DSTRIG.0)   
ENDJOB    
DSTRIG DSN1.FILE   
  DSNAME 'DSN.DSN1'  
  RELEASE ADD(JOB1B) 
  RELEASE ADD(JOB1A) 
  RUN NOW    
ENDJOB   

The above job REL.LINK will complete the DSTRIG DSN1.FILE at 11:00. This will remove the requirement for the dataset DSN.DSN1.
Jobs JOB1A and Job1B will then be released.