Question

  Asked: May 2 2008   9:12 AM GMT
  Asked by: NarasimhaReddy


Batch Job Ends without Calling Program on AS/400 V5R2M0


AS/400, iSeries, CL, COBOL, CL/400

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

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0




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.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

Karank  |   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  |   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  |   May 6 2008  3:22AM GMT

Thankyou all.

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