Hi Rick -

On Tue, 16 Dec 2014 21:03:14 -0500, Rick Mason <rmason62@xxxxxxxxx>

I have a program that is currently submitted 3 times daily via the job
The manager is now requesting the job be run every hour between the hours
of 5am and 11pm.
What would be the more efficient way to accomplish this other than creating
way to many job scheduled entries for the same job.

I use a lot of self-submitting jobs like others have recommended,
however this case I would have just one job run each day (which could
run from the scheduler).

A CL program would do something like:

1. Retrieve and save the QHOUR system value.
2. Do whatever the main processing is.
3. Delay for 15 seconds.
4. Check for a controlled job end and terminate if true.
5. Retrieve the QHOUR system value.
6. If the same as the last saved value, go back to step 3.
7. Otherwise save this new value and go to step 2.

There are various ways to spif this up.

For instance, you could have a method to force the processing to occur
immediately, in which case you might want to have a minimum number of
15-second delays that must occur between executions of the main

Opinions expressed are my own and do not necessarily represent the views
of my employer or anyone in their right mind.

This thread ...


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

This mailing list archive is Copyright 1997-2019 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].