On Fri, 27 Mar 2020 18:48:58 +0000, Seymour J Metz <sme...@gmu.edu> wrote:

>That's the right answer to the wrong question. You removed the apostrophes 
>around foo, so the results are irrelevant. Try my code as written and I 
>suspect that you will get results that differ from what's in the manual.
>
>
>--
>Shmuel (Seymour J.) Metz
>http://mason.gmu.edu/~smetz3

Dana already posted that result.  'foo' say look for a System Symbol named FOO. 
 There is no such Symbol on my system.
sysname = 'foo'                                                                 
 ...............................................................................
...................................................                             
Say MVSVAR('SYMDEF','sysname')                                                  
 SYS0                                                                           
 ...............................................................................
...................................................                             

If it's in quotes then it's used as is.  It's a name.  REXX substitution means 
to convert any variables to their assigned values.

Say 'Value =' MVSVAR('SYMDEF',sysname)                                          
 Value =                                                                        
 ...............................................................................
...................................................                             

sysname is a variable with a value of 'foo' so SYMDEF looks for System Symbol 
"foo" not SYSNAME.

-- 
Dale R. Smith
Factotum 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to