#41 Global variables

open
nobody
None
5
2011-04-04
2011-04-04
Anonymous
No

I learned REXX on IBM mainframes in the 80s. I have a problem. I'd like to read a file in an external subroutine and stuff what I've read in variables so that the calling routine can pick them up or possibly another routine. The doc mentions variable pools (1,2,3,..., SYSTEM and ENVIRONMENT). It states "It is therefore possible to get and set the value of a variable in a higher call level procedure from the current one without the need to EXPOSE the variable. " on page 122-123 of the manual. How do I do this? I see POOLID() and VALUE(). Can I use VALUE as an lvalue?
Also, can I invent my own pool name?

Thanks, Pierre.
prf51@videotron.ca

Discussion