Debug batch job

65 pts.
Tags:
AS/400 jobs
Batch jobs
CLP
iseries v5r4
RPG ILE
Hi all, how do I debug batch job? Please give me in details. Thanks.

Software/Hardware used:
v5r4

Answer Wiki

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

There are multiple ways to debug batch programs. The way that’s best for you would depend on the version of the OS, the kind of workstation you use, the developers’ tools that you have available and possibly other things.

The basic IBM documentation on debugging batch jobs is in the Debugging batch jobs that are not started from job queues and Debugging batch jobs that are submitted to a job queue topics in the Information Center.

If neither of those help, ask for clarifying details back here.

Tom

Discuss This Question: 5  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
  • graybeard52
    Open RSE Right-click on the program to debug, and "Set Entry Point" Start the program in the usual way When the program starts, RSE will switch to debug mode.
    3,115 pointsBadges:
    report
  • Supriyoas400
    Steps: 1.compile the pgm with source option. 2.submit the job 3.start service job (do wrkactjob,select your job,type 5,copy the job number as u will need this in this option) 4.do strdbg,put a break point by F6.If multiple call are there put F2 to include them as well. 5.come out. If in 4 th step ur not allowed to enter breakpoint.Then release the job from other AS400 ID. Do DSPMODSRC.Put breakpoint.Wait for few minutes for debug screen to appear.
    165 pointsBadges:
    report
  • Niranj
    Follow the below steps: 1, Compile the program with Source option and use SBMJOB command and take f10 option for addiotional parameters. 2. Set the Hold on job queue to *Yes 3. Give WRKSBMJOB command and take option 5 to note down the job attributes. 4. Give STRSRVJOB command and the necessary details. 5. Give STRDBG command and the programs to debug. 6. The source will be listed once the above option is given, try to add break points(message will be displayed as break points cannot be added when job is on hold). 7. Come back to the job that is submitted and give option 6 to release it and wait for sometime. 8. Give the DSPMODSRC command, the source will be displayed, add break points and do the debug now.
    10 pointsBadges:
    report
  • Sai4AS400
    Hi graybeard52, What is RSE stands for? can you please elaborate RSE?..Thanks
    1,420 pointsBadges:
    report
  • TomLiotta
    RSE is 'Remote System Explorer', a component of the later versions of WDSC and of RDi. -- 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