Bryan's RPG IV Journal
Debugging a Batch Job
Q. Your "RPG for RPG Programmers" presentation covered the ILE debugger for interactive jobs. But I need to debug a batch program. Do I need a different debugger?
A. No. You can use the same ILE debugger to debug interactive or batch jobs, written in ILE or OPM languages. But there are a few extra steps to get the debugger started. Here's a cheat sheet:
A. No. You can use the same ILE debugger to debug interactive or batch jobs, written in ILE or OPM languages. But there are a few extra steps to get the debugger started. Here's a cheat sheet:
- SBMJOB ... HOLD(*YES)
- STRSRVJOB JOB(jobnbr/user/jobnam)
- STRDBG
- When source is displayed, press F12
- RLSJOB JOB(jobnbr/user/jobnam)
- When Start Serviced Job display appears, press F10
- 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
- When Start Serviced Job display reappears, press Enter
- Program will stop at breakpoint, and can be debugged interactively
- After serviced job ends
- ENDDBG
- ENDSRVJOB
Log of Journal Entries |
|
Use this scrollable blog map to view other journal entries: |
|
| It is your responsibility to ensure procedures, techniques, and code used from this website are accurate and appropriate for your installation. No warranty or support is implied or expressed. |
![]() |
| Privacy and Email Policy |
| AS/400®, eServer, i5/OS, IBM i, Integrated Language Environment®, iSeries, OS/400®, RPG/400®, System i5, VisualAge®, and WebSphere® are trademarks of IBM Corporation. Note: IBM® System i is the latest member of the family of eServer iSeries. This site might refer to System i as System i5, iSeries, or AS/400. |
|
If you are having trouble navigating the menu at the top of this page, you may use the following scrollable site map instead: |
|
|











International visitors: