Prior to version 6.1.00, the Active Jobs file contained only jobs that were ordered for the current working day. When the end of the working day arrived, the New Day procedure removed from the Active Jobs file all jobs with that ODATE, provided that the setting of the MAXWAIT parameter of specific jobs did not prevent such removal. Jobs so removed ceased to be eligible for submission.
As of version 6.1.00, the New Day procedure does not remove any Time Zone job from the Active Jobs file until the end of the ODATE at the Time Zone of the job, when the job is no longer eligible for submission.
With the introduction of the Time Zone feature, jobs may be pre-ordered before the ODATE specified in them, and may remain in the Active Jobs file after that ODATE.
As a result
This problem can be avoided by doing the following:
//* %%SET %%DT=%%OMONTH.%%ODAY.%%OYEAR
//* %%SET %%DT=%%ODAY.%%OMONTH.%%OYEAR
An example order statement:
ORDER DD=DALIB,MEMBER=TIMEZONE,ODATE=%%DT,ODOPT=RUN
The TIMEZONE member in the above example is the name of one of the tables created in step 1.
For more details on the ORDER statement, refer to the CTMJOB utility in the INCONTROL for z/OS Utilities Guide.
If you follow this procedure, jobs are ordered only when necessary, resulting in a smaller Active Jobs file and faster processing.
Parent Topic |