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

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

book

Article ID: 23157

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Need to abandon submission of a file trigger or a DSTRIG at a specific time? The ABANDON SUBMISSION command does not work, how should this be done?

 

 

Environment

Release: All
Component: ESP Workload Automaion

Resolution

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

  • You have a DSTRIG like this:
DSTRIG DSN1.FILE  
  DSNAME 'ROZRIA1.DSN1'   
  RELEASE ADD(ROZRIA1B)   
  RELEASE ADD(ROZRIA1A)   
  RUN NOW   
ENDJOB  
  • 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.