Use two WRKJOBSCDE entries, to keep it simple, one for every Saturday, and one for the first of each month, and ensure that they both submit these jobs to the same single-threaded job queue, and have the job set an indicator, e.g. in a *DTAARA, to show the date the job was last run.
Then, the first step in the job is to retrieve that data area and if the job already ran today, just have that second job exit immediately.
Hope that helps,
Mark S. Waterbury
On Wednesday, November 27, 2019, 8:44:46 AM EST, Alan Shore via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx> wrote:
Before I forget - we are on V7r3
We have a WRKJOBSCDE that is scheduled to run every Saturday @ 7:00 a.m.
The users would now like this to be run on the first of each month as well - also @ 7:00 a.m.
Is this possible within the same job scheduled entry?
I would prefer NOT to have 2 separate job scheduled entries - a new one for the first of each month as February 1, 2020 is a Saturday and I don't want 2 instances of the same job/programs being run at the same time
This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.