AS/400 Active Job Information

265 pts.
Tags:
AS/400 Active Jobs
AS/400 jobs
V5R2
V5R2M0
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following