Thanks! We'll email you
when relevant content is
added and updated.
I was debugging a COBOL/400 batch job.
I am proceeding as per the below steps:
1. SBMJOB ... HOLD(*YES)
2. STRSRVJOB JOB(jobnbr/user/jobnam)
When source is displayed, press F12
4. RLSJOB JOB(jobnbr/user/jobnam)
When Start Serviced Job display appears, press F10
5. When command entry display is shown, DSPMODSRC
When source is displayed, set a breakpoint, then press F12
When command entry display is shown, press F12
6. When Start Serviced Job display reappears, press Enter
Program will stop at breakpoint, and can be debugged interactively
7. After serviced job ends
In step 3 i.e while executing STRDBG command i am receiving the following error:
Command is not allowed while serviced job is not active.
The status of the job is 'held'.
Please let me know how to proceed. Is there any another way of debugging a batch job.
February 15, 2013 2:44 AM