We have situations periodically where we need to change the normal batch window for running jobs. This means that all our batch work that is set in PCS to begin at 9:00 PM has to begin at a later time, say 11:00 PM. This requires us to make large numbers of manual changes to the EARLY Times, LATE Times, & ABORT Times in PCS. I'm looking for a way to perform these changes more automatically and thought a JCLEVNT Job could be set up to do this.
The problem I'm having is that I cannot get the Job to change more than 1 Event at a time, only the first Event gets changed, the 2nd and any more past that do not get changed. Since I have hundreds of Events to change, how can I accomplish this?
How can I get the batch JCLEVNT job to change more than 1 Event at a time ?
Release: Component: FAQPCS
You can run 'generic' SELECT with qualification on GROUP/CAL/NODE or one of the other keywords as listed pages 254-257 of the Operations Guide eg:
// EXEC JCLEVNT FILE CURRENT UPDATE=YES SELECT * (GROUP EQ TST) REPLACE EARLY : 0800 REPLACE LATE : 1800 REPLACE ABORT : 2000 /*
Alternatively, if doing generic updates is too risky, to get multiple SELECTs working in one execution of the JCLEVNT batch job, you need to specify the GROUP parameter if the event you are selecting is in a group eg:
// EXEC JCLEVNT FILE CURRENT UPDATE=YES SELECT TSTNOGRP REPLACE EARLY : 1500 REPLACE LATE : 2000 REPLACE ABORT : 2100 SELECT TSTINGRP (GROUP EQ TEST) REPLACE EARLY : 1500 REPLACE LATE : 2000 REPLACE ABORT : 2100 /*
where event 'TSTNOGRP' is not part of a group and 'TSTINGRP' is in group TEST.