Switch to program which submits batch job, when job is processing

10 pts.
Tags:
AS/400
Batch jobs
A program X calls a batch job Y in between. When the batch job Y is executing, I need to see the value of some variable in the main program X. How can I switch from the batch job Y to the main program X, see the value of the variable I want, and then continue with the batch job Y processing?
1

Answer Wiki

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

You can go into debug on the AS400 and set break points and/or watch for when a value changes.

If you are calling an interactive session, you just need to STRDBG xxyourprogramxx before you call it.

Else,, you need to do a STRSRVPGM for the job you want to monitor and then do a STRDBG command for the specific program.

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.

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.

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

Following

Share this item with your network: