you could run through the jobqs and use the List Job (QUSLJOB) API to
determine the date and time the job is scheduled to run then use the
CHGJOB command to change the scheduled date and time to *CURRENT and to
end the jobs the same applies just use that API to find jobs in a *JOBQ
status. might want to use another API or other method to help with the
process though.
Thanks,
Tommy Holden
From:
Jerry Adams <Jerry@xxxxxxxxxxxxxxx>
To:
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date:
01/27/2009 03:25 PM
Subject:
RE: SBMJOB Scheduled Date/Time
Sent by:
midrange-l-bounces@xxxxxxxxxxxx
Adam,
I wrote a program recently, using the QWCLSCDE api, to list the job
scheduler entries and held any "late" ones when the system is IPL-ed.
There doesn't appear to be an equivalent api the would list the jobs
sitting on a job queue (at least not that I could find). Anyway, there
doesn't seem to be an equivalent to the HLDJOBSCDE for job queue entries
(again, not that I could find).
At this point (if the research is correct), I would think that checking
for an abnormal IPL in the startup procedure and, if so, not starting the
QBatch (or whatever) subsystem would be the limit of what one could do in
this regard.
Jerry C. Adams
IBM System i Programmer/Analyst
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [
mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Adam Glauser
Sent: Tuesday, January 27, 2009 2:03 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: SBMJOB Scheduled Date/Time
Charles Wilt wrote:
So, I think the JOBQ entry of a job waiting for a certain date and
time will survive the IPL, thus will submit when the system comes
I can confirm this from recent experience. It really would be nice if
there was a way to specify a recovery action for jobs that are submitted
with SCDDATE/SCDTIME. I think having a job resubmit itself for the
future can be a good compromise between the added complexity of a never
ending program and the lack of granularity of the default Job Scheduler.
If anyone comes up with a good way to end jobs on job queues in SCD
status at IPL, I'd be happy to hear the method.
As an Amazon Associate we earn from qualifying purchases.