I know how REXX expressions work. Read the text that I quoted from the manual, carefully. The text, as I suspected, is wrong.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [[email protected]] on behalf of Dale R. Smith [[email protected]] Sent: Friday, March 27, 2020 3:00 PM To: [email protected] Subject: Re: REXX MVSVAR SYMDEF behavoiur On Fri, 27 Mar 2020 18:48:58 +0000, Seymour J Metz <[email protected]> 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 [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
