On Wed, 25 Mar 2020, at 09:43, Bruce Hewson wrote:
> Hi,
> 
> In a REXX exec I was building I stumbled onto:-
> 
> Say 'MVSVAR'("SYMDEF",'testing &sysname in &sysplex')
> 
> which provides an unexpected result 
> 
> &'TESTING SYSA IN PLEX01'.   
> 
> The symbols &SYSNAME and &SYSPLEX were replaced.
> And, sadly, the whole lot was uppercased.
> 
> Couldn't find this behaviour documented.

https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.ikja300/mvsvarr.htm

seems to describe the MVSVAR("SYMDEF",string) 

call; string is first substituted by rexx ... which I guess would mean that
eg "testing" is replaced by the value of the symbol 'testing' which, if 
not set, is of course "TESTING"... then the mvs symbols are replaced.

(I think.  I've not done any of this for 20 years.)

-- 
Jeremy Nicoll - my opinions are my own.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to