You can use STRSRVJOB to put the job into "service mode", then use STRISDB the same way as you would normally, but without calling the program :-
STRISDB PGM(Yourlib/Yourpgm) INVPGM(*NO)
Once your program gets called by the batch job, the interactive debugger should start up allowing you to work the same way you do interactively. Remember - you need to run the STRSRVJOB and STRISDB commands from the same interactive session or it won't work.
Last Wiki Answer Submitted: July 8, 2008 3:52 pm by Gilly40023,625 pts.