Batch Job Ends without Calling Program on AS/400 V5R2M0
175 pts.
0
Q:
Batch Job Ends without Calling Program on AS/400 V5R2M0
Hi all,

I have a batch job 'JOB1' which should execute a command CALL LIB1/PGM1.Here PGM1 is CL Program.
I want to debug PGM1.
I submitted thru SBMJOB JOB(JOB1) HOLD(*YES) CURLIB(LIB1). All other are default values for SBMJOB.
I did STRSRVJOB & STRDBG. When I released Job, I set Break Point at the 1st cmd in PGM1, came back to prompt and Pressed enter to run Job.
It immediately displas message "Job being serviced ended.". If I check in Submitted Jobs list, Job Ended. It doesn't enter the PGM1 at all.

Pls help mewith the reason for the above problem.

Thanks
Reddy
ASKED: May 2 2008  9:12 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
23625 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button

Hi,

Maybe you've just missed it on your question, but I don't see any CMD(CALL PGM1) on your SBMJOB command?

Regards,

Martin Gilbert.
Last Answered: May 2 2008  10:23 AM GMT by Gilly400   23625 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Karank   55 pts.  |   May 5 2008  6:07AM GMT

Check are you debugging the program PGM1 from the right libarary/ environment…..
suppose you have 1 environment….then do

sbmjob with Hold(*yes)
strsrvjob
strdbg
release the jobq
f10 to place debug point …
enter to the start…..

have ur debug at at the start of the program,…may be the place where you are placing the breakpoint
…..does not comes uo in the flow or skip up………..

thanks …..

 

Graybeard52   2450 pts.  |   May 6 2008  12:44AM GMT

fwiw,
There is a much easier way to debug batch.
1. Open RSE, right-click either the source or the compiled program, and “Set service entry point:”.
2. Go to a green screen and SBMJOB
3. Once the program starts, the debugger lauches automatically.

 

NarasimhaReddy   175 pts.  |   May 6 2008  3:22AM GMT

Thankyou all.

Thanks Gilly400. I had forgot to give Entry for the Command.

 
0