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.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!