AS/400 Active Job Information
35 pts.
0
Q:
AS/400 Active Job Information
Is there a way for a program to determine if a particular job is active while knowing only the job name (job user and number are unknown) - there may be, in addition to the active job, if active, multiple completed jobs of the same name - and, if yes, be able to retrieve the job user and number of the active job?

Software/Hardware used:
AS400 V5R2M0
ASKED: Sep 7 2009  7:59 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
35 pts.
0
A:
 RATE THIS ANSWER
+1
Click to Vote:
  •   1
  •  0
  • AddThis Social Bookmark Button
Hi Zack,

What you need is API QUSLJOB. Format JOBL0100 is enough for what you want.

It will list all jobs for a specific name and you can filter *ACTIVE only.

Regards,
Wilson


Hi Wilson,

Thank you for the answer. I had actually looked at this API but read it wrong - I thought it required me to know the job name, user name and job number in advance. I've now taken a second, closer look and see that I can give *ALL for both user name and job number and since only one job (of the job name) should be active at any given time, I can then extract the active user name and job number.

Regards,
Zack
Last Answered: Sep 8 2009  7:06 AM GMT by Zack   35 pts.
Latest Contributors: WilsonAlano   2005 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0