60 pts.
 Debug batch job
hi all,
    how to debug batch job please give me in details...
thnx


Software/Hardware used:
v5r4
ASKED: September 6, 2010  8:41 PM
UPDATED: October 19, 2010  3:42 PM

Answer Wiki:
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 <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rbam6/debugbatchns.htm">Debugging batch jobs that are not started from job queues</a> and <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rbam6/debugbatch.htm">Debugging batch jobs that are submitted to a job queue</a> topics in the Information Center. If neither of those help, ask for clarifying details back here. Tom
Last Wiki Answer Submitted:  September 7, 2010  6:31 am  by  TomLiotta   107,965 pts.
All Answer Wiki Contributors:  TomLiotta   107,965 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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 pts.

 

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.

 130 pts.

 

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 pts.

 

Hi graybeard52,

What is RSE stands for? can you please elaborate RSE?..Thanks

 900 pts.

 

RSE is ‘Remote System Explorer’, a component of the later versions of WDSC and of RDi. — Tom

 107,965 pts.