Page 2 of 2

Re: how to set a return code

PostPosted: Mon Feb 08, 2010 9:02 pm
by Anuj Dhawan
I am planning to terminate the jcl at the end of step 5 here, if i get a return code of 4.
If return code is zero, i shall continue execution of the jcl.
You might put rest of the steps inside a IF construct which allow the execution of the stpes only when RC=4 of step5.

By the way, if you get RC=4 in step5 - are you able to abend the job? I'm little unsure about the "context" of word abend in your explanations...

Re: how to set a return code

PostPosted: Tue Feb 09, 2010 12:12 am
by dick scherrer
Hello,

Please let me know what is the method to terminate an executing JCL without abending it
As i mentioned before:
Possibly they would respond better if you placed the COND= on the individual steps?

I only know 3 ways out of a batch job (unless i've forgotten something)
1. Normal eoj
2. Terminate due to condidion code(s)
3. Abend (User or System)

Suggest you talk with them again and ask what is acceptable to them. . .

Re: how to set a return code

PostPosted: Wed Feb 17, 2010 2:23 pm
by samurai007
Hi,

2. Terminate due to condidion code(s)


Am trying to do something on these lines only.
Can you please elaborate on how this can be achieved ?


By the way, if you get RC=4 in step5 - are you able to abend the job?


Yes !! i am able to abend a job.
But my requirement is to terminate it normally.

Thanks,
Sam.

Re: how to set a return code

PostPosted: Wed Feb 17, 2010 2:51 pm
by expat
Well, if the following steps are flushed after condition checking what is the problem ?

Re: how to set a return code

PostPosted: Thu Feb 18, 2010 1:00 am
by dick scherrer
Hello,

Yes !! i am able to abend a job.
But my requirement is to terminate it normally.
A return code does not typically cause an abend. What is your definition of "terminate mormally"?