Same PDS member or same PDS dataset? If they are in the same member - i.e. the same REXX - the stem will be available unless you have done a PROCEDURE statement to protect variables.
Assuming you have this;
MyStem.1 = 'My Data'
rv = MyLabel()
return 0
MyLabel: procedure
say MyStem.1 /* Won't work */
return 0
MyLabel: procedure expose MyStem.
say MyStem.1 /* Now returns 'My Data' */
return 0
If the sub-routine is in a seperate member, then I don't know how to pass it. I thought I did this at another site but that was years ago... I know you can do it with ObjectREXX though.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.