On Wed, 25 Mar 2020 11:24:30 -0400, Ken Smith wrote:
>Useful, but this is closer and more clear (don't have a system to test)
>
>sysname = MVSVAR('SYMDEF','SYSNAME')
>sysplex = MVSVAR('SYMDEF','sysplex')
>
>say 'Testing on' system 'in' sysplex
>
If, as described in the Ref.:
The MVSVAR('SYMDEF',string) function goes through REXX substitution for
string first,
the result of which must be a 1-8 character symbolic-name specifying the
symbol that
has been defined in the SYMDEF statement. Any other values including REXX
delimiters
might cause unpredictable results.
I code:
Foo = 'SYSNAME'
Bar = 'sysplex'
sysname = MVSVAR('SYMDEF','Foo')
sysplex = MVSVAR('SYMDEF','Bar')
... I'd expect to get the (same) desired result.
Whereas, if I code:
SYSNAME = 'Foo'
sysplex = 'Bar
sysname = MVSVAR('SYMDEF','SYSNAME')
sysplex = MVSVAR('SYMDEF','sysplex')
... I'd expect to get an undesired result.
<Gasp!> Right? </Gasp!>
The Ref. should clarify this with examples.
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN