Changing jobs DUEOUT time using a batch job?
search cancel

Changing jobs DUEOUT time using a batch job?

book

Article ID: 24738

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Would like to change the DUEOUT time of a job using a batch job?

Environment

Release: All
Component: ESP Workload Automation

Resolution

Run the APPLJOB command using the RESET LATEEND option.

Sample application:

APPL APPL1
JOB JOB1
DUEOUT EXEC 9AM
RUN DAILY
ENDJOB

The following batch job changes the DUEOUT time to 15.00.  JOB1 now has a must-end time of 15.00.

 //STEP01  EXEC  PGM=ESP,PARM='SUBSYS(ESP)'   ===> This would be your subsystem name.
 //STEPLIB    DD   DSN=hlq.ESP.CD7YLOAD,DISP=SHR  
 //SYSPRINT DD   SYSOUT=*  
 //SYSIN        DD   *                                             
  APPLJOB JOB1 RESET LATEEND('15.00') APPLICATION(APPL1.1) 
 /*

Additional Information

Use the APPLJOB command to control jobs and subapplications.

APPLJOB Command