Tip:If you assign the name of a memory variable to
stream-variable-name,
then the stream variable resolves as the value of the memory variable.
For example, the following partial program uses the memory variable
$MyStream as a stream variable:
set $mystream 'test';
open $mystream;
put 'The memory variable $mystream is being used as a stream variable';
close;
Therefore, the following statements are equivalent:
put $$test;
putstream $mystream;
putstream test;
The following statements are also equivalent:
unset $$test;
delstream $mystream;
delstream test;
See memory variables.