×
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.
If you do not currently have the AJS (Advanced Job Scheduler) you can use
the freebie WRKJOBSCDE and schedule a weekly job. This will show you how
easily that shows you the next run date. The freebie doesn't support
every other week though. Sure you can muff it by adding "omit dates" or
by manually scheduling all the dates in there but that is prone to error.
AJS comes with the 70 day license key to try it out.
If you want to do something like this with SQL or something you could do
something like
values dayofweek(current date), dayofweek_iso(current date),
week(current date), week_iso(current date)
into :d1, :d2, :w1, :w2;
If d1=2 and w1/2 = int(w1/2) then ...
but then you run into end of year and it running ok, or two weeks in a
row, or skipping an additional week.
or just add 14 days to last run date and go from there (easier in RPG than
SQL) Initializing last run date for the first run can be a trick.
I've never used AJS.
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
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.