Can we use Redefines in linkage section?

All sort of Mainframes Interview Questions.
Post Reply
Chetan Kakkar
Registered Member
Posts: 12
Joined: Wed Dec 11, 2013 1:34 pm

Can we use Redefines in linkage section?

Post by Chetan Kakkar »

Hi,

Can we use Redefines in linkage section?

My answer was yes but then I was aksed what can be such a need to use Redefines in linkage section, which I could not answer, Could someone please help on that.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Can we use Redefines in linkage section?

Post by Robert Sample »

One possibility would be that a variable in the parameter list may be alphanumeric or numeric depending upon the program calling the subprogram. A REDEFINES in this case would allow both definitions to be used without needing any variables in WORKING-STORAGE.
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 “Interview Questions.”