If you know the job number, you could use a JINFO function:
setvar IsRunning jinfo('#J4',"EXIST")
You can also do something like this (at least it works for me!):
showjob job=myjob,manager.sys >showtemp
setvar numlines finfo('showtemp',19)
if !numlines<4 then
#Job does not exist
else
#Job exists
endif
-----Original Message-----
From: Tom of Bunyon [mailto:[log in to unmask]]
Sent: Thursday, May 30, 2002 11:32 PM
To: [log in to unmask]
Subject: Re: [HP3000-L] Need Intrinsic to say if a job is running or not
I think there's an MPEX command that returns the number of jobs matching the
Job Card mask.
%IF JSCOUNT("@,@.OMSINSTL")<>0 THEN
%ENDIF
"Nancy Tietz" <[log in to unmask]> wrote in message
news:ad5uln011vv@enews1.newsguy.com...
> Anybody know of an Intrinsic that could be called to determine if a
> particular job is running or not?
> Other suggestions for similar functionality are welcome.
> Thanks
>
> * 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 *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|