Ought to be possible to use jobcnt to find the job or jobs, then loop thru
the joblist_var and call jinfo to see which ones are EXEC and which are WAIT.
(If I knew more about your specific situation, I might have a completely
different approach. For example, to block all the jobs in a separate jobq
during our backups, our backup streams a placeholder job with a higher inpri
than the real jobs, then waits for it to log on. The placeholder does nothing
except pause until the backup job logs off).
Dave Powell, MMfab
----- Original Message -----
From: "Greg Stigers" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Tuesday, March 22, 2005 23:11
Subject: [HP3000-L] pausing for a job
> Our daily processing shuts down various jobs before the backup, and then
> aborts those that do not shut down. I had noticed that some jobs took longer
> to shut down than this process allowed, so I added times pauses for these
> jobs to shutdown. Later, I noticed that one pause always gave an error that
> the time for pause had been exceeded. Then I noticed that this job was being
> rescheduled to start before the backup. So of course, it existed, and pause
> waited on it. Is there a simple way around this, to pause for the executing
> job while it is shut down, but not for the scheduled job?
>
> Greg Stigers
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|