> Is there a simple (i.e., not doing a showjob and parsing
> output) way to determine if a scheduled job exists?
If you are on 6.0 PP1 or greater you a few choices:
- if you know the jobID you can do this:
if JINFO("#Jnnnn", "exists") then ...
- if you know the job "[jname,]user.acct" logon ID you can do this:
if JOBCNT("jname,user.acct") > 0 then ...
HELP JOBCNT and HELP JINFO provide the details.
HTH,
Jeff V.