Sorry if this is repetitive. I've read some solutions but not all of them.

What I normally do is this:

I continue to use the Job Scheduler to control the days and time to start.

The cl program has two parms, one for &DLYMINS and one for &ENDTIME *CHAR
6 (hhmm).
The top of the program (outside the loop) will convert &DLYMINS to
&DLYSECS into 2 steps, one to cvt to dec and one * 60.
I *CAT '00' to the end of &ENDTIME because &CURTIME will be 6 long.
I also retrieve the current date and store it in &STARTDATE.

In the loop, I retrieve the current date and time.
The job will end if &CURTIME > &ENDTIME or if &CURDATE *NE &STARTDATE.
DLYJOB DLY(&DLYSECS)
GOTO LOOP

I hope this helps.

Glenn Gundermann
ggundermann@xxxxxx
(647) 272-3295


List,

I need to schedule a job to run every n minutes on certain days between
certain hours. At first inspection, it does not appear that WRKJOBSCDE
supports that degree of control. Is this possible at all on the iSeries?
We
have two systems - v5r3 and v5r4. TIA.

--
Regards,

Michael Rosinger
Systems Programmer / DBA
Computer Credit, Inc.
640 West Fourth Street
Winston-Salem, NC 27101
336-761-1524
m rosinger at cciws dot com

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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 [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.