PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

Join the forum, it's quick and easy

PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).
PMS Information Systems
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Debug a batch program1

Go down

debug - Debug a batch program1 Empty Debug a batch program1

Post  maran Fri Sep 14, 2012 9:21 pm

Debug a batch program

1. You will need to know what jobq the job will be running in so you can hold the
jobq. Hold that job queue.

2. Submit the job that needs the debug.

3. Display the jobq to get the job name, user and job number. (debug job)

4. Issue the command STRSRVJOB and F4. Enter the debug job information and
press enter.

5. Issue the STRDBG command and F4 to enter the debug job information.

6. Release the jobq.

7. When the job start's to run a message will appear on the session that you
entered the STRSRVJOB command.

8. Press F10 and at the command line enter your ADDBKP command.

9. To resume after the break points are entered press F3 and when back on the
message press enter.
This will allow the job to run in batch and will act like the interactive version
of STRDBG.

10. When the job ends remember to ENDDBG and ENDSRVJOB.
maran
maran
Admin

Posts : 442
Join date : 2009-07-24

https://pmsinformationsystem.forumotion.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum