ESP Workload Automation

 View Only

 DOES SELFCOMPLETING RUN JCL?

Harman's profile image
Harman posted Oct 22, 2021 10:53 AM
Hello everyone,

I have a job that i don't want to run for a few days but it have over 10 dependents and predecessors. I don't want to take it out of schedule because it only for a few days.

I wanted this job to auto completed when it is run and don't want it to execute JCL.

Question>  Will SELFCOMPLETING just completed the job or will it also run the JCL?

example>

JOB JOBNAME1 TASK SELFCOMPLETING
 RUN MON
 RELEASE ADD( JOBNAME2)
 RELEASE ADD( JOBNAME3)
ENDJOB

Thanks
Loren Watts's profile image
Loren Watts
I am not answering your SELCOMPLETING question, but here is another possibility.
Add statements to the job for NORUN on the specific dates for your situation.
IF TODAY('MON 25 OCT 2021') THEN NORUN TODAY

other ideas to show how my team uses NORUN

IF TODAY('JULY 11 2022') AND '%ESPSHH%ESPSMN' GT '0900'

IF TODAY('SUN') AND TODAY('LAST DAY OF MONTH') THEN NORUN TODAY
TERESA JOHNSON's profile image
TERESA JOHNSON
I would just make the job REQUEST.  This keeps the predecessor and successor relationships but doesn't execute the JCL.  

If it is only for certain days the use something like
IF TODAY('THU SUN') THEN JOBATTR REQUEST

Thanks
Teresa
Chris_Elvin's profile image
Broadcom Employee Chris_Elvin

I think that both Loren and Teresa give good examples of how you might achieve what you want

My thoughts are much simpler - If you know exatly when the start and end of your "blackout perio are",just use a list of NORUN statements

NORUN 25th-31st day of October 2021
NORUN 1st-5th day of November 2021
etc.

I am sure there are many other ways you can achieve your end-results - that's the beauty of ESP