Hello,
I'm a little stuck and looking for advice here.
I am trying to run a program in debug via STRSRVJOB and STRDBG. I have done this before, for jobs that are constantly running and it works fine, so I thought it would be simple enough to apply the same process to jobs that are submitted to a queue, run for a bit and then end - however I am struggling to get it to work...
I have tried following this; https://www.ibm.com/support/knowledg...debugbatch.htm
So I do STRSRVJOB, that's fine.
I then do STRDBG on my program with update production files *YES
The source appears, now usually here I would press F10, the source would disappear and when the program is called it would break
However in this instance it doesn't, it says that F10 is an invalid action as the program isn't active - it seems the only options I have are F3 or F12...
So I pressed F12
I release the job the and get a prompt, I press F10 to add debug commands.
If I try ADDBKP for statement 1 of my program, it says the program isn't active in an OPM environment...
If I go back to the prompt and press enter, the program just ends without breaking...
Can anyone advise how to get my program to break? The job finishes in about 5 seconds so there's no time for me to ninja in a STRDBG when it starts.
Thanks,
Ryan
I'm a little stuck and looking for advice here.
I am trying to run a program in debug via STRSRVJOB and STRDBG. I have done this before, for jobs that are constantly running and it works fine, so I thought it would be simple enough to apply the same process to jobs that are submitted to a queue, run for a bit and then end - however I am struggling to get it to work...
I have tried following this; https://www.ibm.com/support/knowledg...debugbatch.htm
So I do STRSRVJOB, that's fine.
I then do STRDBG on my program with update production files *YES
The source appears, now usually here I would press F10, the source would disappear and when the program is called it would break
However in this instance it doesn't, it says that F10 is an invalid action as the program isn't active - it seems the only options I have are F3 or F12...
So I pressed F12
I release the job the and get a prompt, I press F10 to add debug commands.
If I try ADDBKP for statement 1 of my program, it says the program isn't active in an OPM environment...
If I go back to the prompt and press enter, the program just ends without breaking...
Can anyone advise how to get my program to break? The job finishes in about 5 seconds so there's no time for me to ninja in a STRDBG when it starts.
Thanks,
Ryan
Comment