How to change the Return code?

JES2/3, JCL, utilities.
Post Reply
Mr Awasthi
Registered Member
Posts: 26
Joined: Mon Aug 12, 2013 10:42 am

How to change the Return code?

Post by Mr Awasthi »

Hi,

I've a COBOL program, which at successful execution gives RC=00, is there any way to change it to RC=8. One way I can think of using moving 8 to RETURN-CODE register but I don't want to change the program.

Regards,
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: How to change the Return code?

Post by Robert Sample »

You either change the program or accept the 0 return code. Since return code 0 usually means normal end of program and return code 8 usually means some error occurred, why do you want to change the 0 to 8?
Mr Awasthi
Registered Member
Posts: 26
Joined: Mon Aug 12, 2013 10:42 am

Re: How to change the Return code?

Post by Mr Awasthi »

Thanks Robert.

The Business maps the RC=08 with some Business condition, RC=00 is already mapped to a condition. This is the reason why I need RC=08.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”