Page 1 of 1

Can we use Redefines in linkage section?

Posted: Fri Dec 15, 2017 3:26 pm
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.

Re: Can we use Redefines in linkage section?

Posted: Fri Dec 15, 2017 6:26 pm
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.