Steps to debug the batch job which is active

510 pts.
Tags:
AS/400
AS/400 batch jobs
AS/400 debugging
If a job is in held state, we can give STRSRVJOB and STRDBG and RLSJOB to debug the PGM. But I need the steps to debug the batch job which is active?

Software/Hardware used:
V7R1

Answer Wiki

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

When the job becomes active, your screen will change and tell you the job your are debugging is active. At that point, do F10, Then you do DSPMODSRC and put in your break points. Now F3 twice and the program will be running.

Discuss This Question: 2  Replies

 
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
  • ShajiMohan
    For debugging a job which is already active,  perform strsrvjob and then put strdbg (don't forgot to put updprod as *yes, else will go to message wait). The screen with the program source will be shown. Set the break point and take F12 key. 
    45 pointsBadges:
    report
  • TomLiotta

    Note that you don't debug a "job". You debug a "program". It doesn't matter if a "job" is active or not; it only matters if a "program" that might or might not be called in some job is active or not.

    So, first, you can't debug a program that hasn't been enabled for debug. Second, you must use STRSRVJOB to begin debugging a program in a different job; so you need to ensure that you have the proper authorities.

    Those two requirements alone make it difficult to list the steps.

    However, you should be able to clarify your question by going through the Reasons for using a job to debug another job topic in the Information Center. One of the listed scenarios should fit your requirement. Once you determine which one is appropriate and look at its steps, see if any details need to be clarified for you.

    Tom

    125,585 pointsBadges:
    report

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