Batch Job Ends without Calling Program on AS/400 V5R2M0

225 pts.
Tags:
AS/400
CL
CL/400
COBOL
IBM iSeries
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Karank
    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 .....
    55 pointsBadges:
    report
  • graybeard52
    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.
    3,115 pointsBadges:
    report
  • NarasimhaReddy
    Thankyou all. Thanks Gilly400. I had forgot to give Entry for the Command.
    225 pointsBadges:
    report
  • TomLiotta
    Open RSE, right-click either the source or the compiled program, and “Set service entry point:”. RSE isn't needed. Service entry point debugging can be done with two green-screen sessions in place of one RSE session and a green-screen session. The SBREAK debug command sets a service entry point in one session. STRSRVJOB is then used in the second session to start the service debug. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following