Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Breaking on a Submited Job 1

Status
Not open for further replies.

Fooch

Programmer
Dec 19, 2005
63
US
Is there a way to get a submitted job to break so that I can debug it?
 
yes... but you have to move "quick"... what I'd suggest is holding the job as soon as it becomes active, so it won't finish by the time you enter there commands.

Find the name of the job, and enter
STRSRVJOB JOB(number/user/name)
STRDBG (program)UPDPROD(*yes)

If you are using the full-screen debugger, you should be brought into it. Otherwise, use the ADDBKP commands
 
Alternatively you can first hold the job queue then submit the job. Hence you'll get time to quietly start to debug.
 
Unless things have changed since v5r2, I don't think that you can start a service job unless the job is active
 
bwtc,

Nope. My platform is running OS 5.2

Do in that order

1/ hldjobq
2/ strsrvjob
3/ strdbg and F3/F12 immediately
4/ rlsjobq
5/ Then you get the following message :
The serviced job has been released from the job queue. Press Enter to start the job or F10 to enter debug commands for that job.
6/ Hit F10
7/ Type DSPMODSRC and enter the breakpoints
8/ F12 and F3 to return to the message
9/ Hit Enter to start the job in debug mode.
10/ When done, don't forget enddbg and endsrvjob

This looks maybe a little awkward but you'll fell much more comfortable to debug quietly a program running in batch.

 
That DOES make things a LOT easier... :)

Perhaps I was thinking of v5r1... I remember trying this in the past, but it didn't work. A new tool for the new year! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top