× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Something I did with the AJS. We have a job we want to run every 5 minutes
during normal business hours (M-F 8am-5pm) and every 15 minutes outside
those hours. So I did it with 4 AJS jobs.

So the "real" job has this schedule (only relevant portions shown):

Schedule code . . . . . . . . *MINUTES Name, *DAILY, F4 for list
Interval . . . . . . . . . . . 5 Minutes, 1-720
Days . . . . . . . . . . . . . *MON *TUE *WED *THU *FRI
Start time and date:
Beginning time . . . . . . . 08:00 Time, *NONE
Beginning date . . . . . . . *NONE Date, *NONE
End time and date:
Ending time . . . . . . . . 16:55 Time, *NONE
Ending date . . . . . . . . *NONE Date, *NONE

The midnight to 8am job:

Schedule code . . . . . . . . *MINUTES Name, *DAILY, F4 for list
Interval . . . . . . . . . . . 15 Minutes, 1-720
Days . . . . . . . . . . . . . *MON *TUE *WED *THU *FRI
Start time and date:
Beginning time . . . . . . . 00:15 Time, *NONE
Beginning date . . . . . . . *NONE Date, *NONE
End time and date:
Ending time . . . . . . . . 07:55 Time, *NONE
Ending date . . . . . . . . *NONE Date, *NONE

The 5pm-midnight job:

Schedule code . . . . . . . . *MINUTES Name, *DAILY, F4 for list
Interval . . . . . . . . . . . 15 Minutes, 1-720
Days . . . . . . . . . . . . . *MON *TUE *WED *THU *FRI
Start time and date:
Beginning time . . . . . . . 17:00 Time, *NONE
Beginning date . . . . . . . *NONE Date, *NONE
End time and date:
Ending time . . . . . . . . 24:00 Time, *NONE
Ending date . . . . . . . . *NONE Date, *NONE

And the weekend job:

Schedule code . . . . . . . . *MINUTES Name, *DAILY, F4 for list
Interval . . . . . . . . . . . 15 Minutes, 1-720
Days . . . . . . . . . . . . . *SUN *SAT
Start time and date:
Beginning time . . . . . . . 01:00 Time, *NONE
Beginning date . . . . . . . *NONE Date, *NONE
End time and date:
Ending time . . . . . . . . 24:00 Time, *NONE
Ending date . . . . . . . . *NONE Date, *NONE


The command for the latter 3 jobs just submit the real job:

SBMJOBJS JOB(therealjob) TIME(*IMMED)

There's probably a smarter way, but this works.


On Mon, Feb 3, 2020 at 9:04 AM Justin Taylor <JUSTIN@xxxxxxxxxxxxx> wrote:

I use the job scheduler to spawn the initial job and then have it use
SBMJOB SCDTIME() to resubmit as needed.



-----Original Message-----
From: James H. H. Lampert [mailto:jamesl@xxxxxxxxxxxxxxxxx]
Sent: Friday, January 31, 2020 5:34 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Scheduling a more-frequently-than-daily job?

Fellow Midrange geeks and geekettes:

Most of you probably already know that my "weapon of choice" for setting
up a job to run periodically is a self-perpetuating batch job: when runs,
it schedules its own next run.

I do understand the basics of job schedule entries, but I'm not always in
a position to use them, and I figured out self-perpetuating batch jobs
before I learned about them.

Now, I have situations that call for a job to run not just daily, but
*hourly* (at least during business hours). I've got it set up with
self-perpetuating batch jobs, but I just took a look at WRKJOBSCDE and
ADDJOBSCDE. I don't see anything there for setting up a job schedule entry
for more than once daily.

Is there a way, short of setting up a separate job schedule entry for
every time the job should run during a typical day?

--
JHHL

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.