another old snippet from an ancient document I found in a dim dark and hazy corner of an even older and crustier HDD… rather than let it disintegrate, here it is migrating to the web just in the (extreme) off chance that it may be useful to someone out there…. 😉
Debug a program in BATCH.
1. Hold the JobQ (Eg: QBATCH)
2. Submit the job.
3. Hold the job – Take option 3 against the job in “Work with submitted jobs”.
4. Release the JobQ
5. Take option 5 against the job to be debugged and make a note of the “Job Name”, “User”, and “Job Number”.
6. Execute the command STRSRVJOB – Start Service Job. Input the Job Name, User, Job Number.
7. STRDBG – Start Debug.
8. Release the job that is on hold – Take option 6 against the job on hold to release.
9. Once the job is released, a screen is displayed which tells u to add the break points. Take F10 and execute the command ADDBKP.
10.Then it is the normal way of debug using STRDBG.
IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Alpha Nerd and Passionate Eater of Cheese and Biscuits. Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day. Enjoy your stay, feel free to comment and in the words of the most interesting man in the world: Stay thirsty my friend.
How do we Check for Batch or Interactive in CLLE
How to encrypt or hide CL/RPG Source Code in ILE Debug Views
DSPLY Sucks. QUILNGTX Rocks.
How to Debug HTTPAPI RPG Programs – dsplnk ‘/tmp/httpapi_debug.txt’
RPG Debug – Display Pointer Data
RPG Debug display large field content
Developerworks Connections Sunset – How to Extend RDi
Why use IBM i RDi?
How to Install IBM Access Client Solutions (ACS)
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.