Steve,
We have this similar scenario.
IBM AJS handles this nicely, no coding needed, all AJS configuration.
We run both AJS and ROBOT, each has their advantages, disadvantages.
Schedule code . . . . . . . . *MINUTES Name, *DAILY, F4 for list
Interval . . . . . . . . . . . 15 Minutes, 1-720
Start time and date:
Beginning time . . . . . . . 08:00 Time, *NONE
Beginning date . . . . . . . *NONE Date, *NONE
End time and date:
Ending time . . . . . . . . 20:00 Time, *NONE
Ending date . . . . . . . . *NONE Date, *NONE
BRCFTP3PV *NONE 0 11/18/20 8:00 8:00 0:01 *NORMAL
BRCFTP3PV *NONE 0 11/18/20 8:15 8:15 0:01 *NORMAL
BRCFTP3PV *NONE 0 11/18/20 8:30 8:30 0:01 *NORMAL
Paul
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Steve M via RPG400-L
Sent: Wednesday, November 18, 2020 6:00 PM
To: 'RPG programming on IBM i' <rpg400-l@xxxxxxxxxxxxxxxxxx>
Cc: Steve M <txpenguin1@xxxxxxxxxxx>
Subject: Recurring Interval Job
It sure seems like there should be an easier way to do this, so let's see what everyone's done before.
I have an RPGLE program that needs to run at 15 and 45 minutes past the hour, every hour, every day, exactly. There are other dependent jobs, so the timing is important.
We have ROBOT installed, but when you use the job interval (run every 30
minutes) option, you lose the ability to choose the time the job runs the first time; it's as soon as you place it into ROBOT. That's great right up until we do an IPL each week and the return time from the IPL varies and ROBOT would submit the first run of the job as soon as it returned from the IPL (odds are that's not exactly on 15 or 45 past the hour). So that's not a player.
The easiest solution has always been to create a CLLE that's submitted from ROBOT (at a specific time each week sufficiently after the IPL on either a
15 or 45), and have that job then submit the RPGLE program and then do a
DLY(1800) and continue like that until the next IPL. I'm trying not to put a never-ending job on the system, if possible, that spends 99.999% of it's time just taking up space and being tracked by the system.
Has anyone come up with a better way to have a job execute (in this case twice per hour), at a specific time, that doesn't involve having a never-ending job running in the background?
Thanks,
Steve
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2flists.midrange.com%2fmailman%2flistinfo%2frpg400%2dl&umid=576b69a5-a850-4740-9dce-f147d941888a&auth=438b0784514c1757bd202125ca4db8b0abdb021e-f2644135d72b131c9ca20f80db87331d47748242
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2farchive.midrange.com%2frpg400%2dl&umid=576b69a5-a850-4740-9dce-f147d941888a&auth=438b0784514c1757bd202125ca4db8b0abdb021e-a8929e70ee1cf83df2739a6c325b87c0304d18b7.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2famazon.midrange.com&umid=576b69a5-a850-4740-9dce-f147d941888a&auth=438b0784514c1757bd202125ca4db8b0abdb021e-369c75bf0d982475d49f3fe28ce51378b83ed4c3
As an Amazon Associate we earn from qualifying purchases.