× 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.



Hi Rick -

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

I have a program that is currently submitted 3 times daily via the job
scheduler.
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
processing.

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

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.