How to get job attributes for a different job that was submitted and is running on the system

10 pts.
Tags:
RPG
RPG/400
RTVJOBA
I have a query. How to get job attributes for a different job that was submitted in batch and is running on the system? Right now I'm able to use RTVJOBA and get the job name of the Job that started. But i also have another job submitted in batch with a different job number. Could anyone help me to find out the second job number?

Answer Wiki

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

You don’t say how the other batch job was submitted/initiated so there might be better ways, but worst case you can use the List Job API QUSLJOB to get a list of all the batch jobs that are active. This list can be filtered if you also happen to know the name or user the job of interest is running under.

Once you have the full job name you can use the the Retrieve Job Information API QUSRJOBI can return job attribute information (along with a whole lot more) for any job that you are authorized to.

Hope this helps,
Bruce Vining

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