Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Breaking on a Submited Job

Breaking on a Submited Job

Breaking on a Submited Job

Is there a way to get a submitted job to break so that I can debug it?

RE: Breaking on a Submited Job

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

RE: Breaking on a Submited Job

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

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


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.


RE: Breaking on a Submited Job

That DOES make things a LOT easier... smile

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! smile

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close