Is there any way to find out if a job is scheduled BY NAME, other than
brute force parsing a :showjob output? JINFO only takes job numbers.
For example, if you want to see if a named job is running, you can:
:tell foo.bar Are you there?
:if cierror=1627 then
since the tell generates "J2 FOO.BAR" not interactive. Message not sent
to job. (CIWARN 1627).
This little trick doesn't work if the job exists but is scheduled,
you get There was no session found that matched this ID. (CIWARN 1619)
SHOWJOB doesn't set any return codes whether it exists or not.
Is there an crafty workaround, or do you have to parse SHOWJOB output?
Jeff
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *