I need some help for a small program that will check if a job is
active.
I was trying the following:
-------------------------------------------------
DSPJOB JOB(NUMBER/USER/JOB)
MONMSG(CPF1070) EXEC(not found).
job is found
not found: ENDPGM
-------------------------------------------------
But if the job has old spooledfiles and the jobstatus is OUTQ, CPF1070
is not catching this. It will act like the job is active.
How do i do, if i want to check if the job is found and active or not?
Regards
Brian
>How do i do, if i want to check if the job is found and active or not?
I was finding out already. I will do a DSPLOGLOG. This is failing if
the job is not ACTIVE at all.
/Brian
Henk
Brian B. Christensen <bb...@hotmailen.com> schreef in berichtnieuws
ggu0hus0amg3f43ae...@4ax.com...
>Why don't you use WRKUSRJOB? You can check all your (and others) jobs;
>wether they are active, in jobq or outq.
>The only thing you need is a command rule.
Because I'm reading the job number, job name and user from a file. And
i only want to check these jobs.
Regards
Brian
If the job is in OUTQ I get CPF1070, if active not, can't check what i see
when the job is in jobq.
Henk
Brian B. Christensen <bb...@hotmailen.com> schreef in berichtnieuws
6d01hu42a7b8aeofl...@4ax.com...
URL for InfoCenter:
http://as400bks.rochester.ibm.com/pubs/html/as400/infocenter.htm
"Brian B. Christensen" wrote:
--
Rodney A Johnson
Technical Team Lead for AS/400 Spool
Dept GJC
IBM Rochester, Minnesota
The contents of this message express only the sender's opinion.
This message does not necessarily reflect the policy or views of
my employer, IBM. All responsibility for the statements
made in this Usenet posting resides solely and completely with the
sender.
>Brian, Use API QUSRJOBI to extract the job's status. If job is gone you
>will get an error message you can check for. If not, you can check the
>job status. API documentation is under programming in the InfoCenter.
Thanks. This is exactly what i need.
Regards Brian