Breaking on a Submited Job Breaking on a Submited Job Fooch (Programmer) (OP) 29 Dec 06 08:49 Is there a way to get a submitted job to break so that I can debug it? RE: Breaking on a Submited Job bwtc (Programmer) 29 Dec 06 09:20 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 enterSTRSRVJOB 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 RE: Breaking on a Submited Job Mercury2 (TechnicalUser) 29 Dec 06 13:31 Alternatively you can first hold the job queue then submit the job. Hence you'll get time to quietly start to debug. RE: Breaking on a Submited Job bwtc (Programmer) 29 Dec 06 13:43 Unless things have changed since v5r2, I don't think that you can start a service job unless the job is active RE: Breaking on a Submited Job Mercury2 (TechnicalUser) 29 Dec 06 14:13 bwtc,Nope. My platform is running OS 5.2Do in that order1/ hldjobq2/ strsrvjob3/ strdbg and F3/F12 immediately4/ rlsjobq5/ 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 F107/ Type DSPMODSRC and enter the breakpoints 8/ F12 and F3 to return to the message9/ Hit Enter to start the job in debug mode.10/ When done, don't forget enddbg and endsrvjobThis looks maybe a little awkward but you'll fell much more comfortable to debug quietly a program running in batch. RE: Breaking on a Submited Job bwtc (Programmer) 29 Dec 06 14:27 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!