> What I don't understand is where the ampersand and dot are coming from in the > displayed result.
The ampersand and dot are coming from MVSVAR. Technically that complies with the "unpredictable" in the REXX reference manual. Personally I think that they should document it, but I can't justify calling it a documentation error. > So I suggest showing what hapens with just one value - a valid symbol > name - with and without single quotes. Technically there is only one value; that value includes spaces and ampersands. I'd like to see what happens when the value has ampersands and expands to a valid symbol name, e.g., IEASYMxx contains SYMDEF(&BAR='BAZ') SYMDEF(&FOOBAZ='SNAFU') %SYMSUB FOO&BAR -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Jeremy Nicoll [jn.ls.mfrm...@letterboxes.org] Sent: Sunday, March 29, 2020 6:38 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: REXX MVSVAR SYMDEF behavoiur On Sun, 29 Mar 2020, at 00:08, Seymour J Metz wrote: > SYMSUB is a REXX routine that he wrote to pass the argument to > MVSVAR('SYMDEF',*) and display or return the result. Yes of course, I understand that. What I don't understand is where the ampersand and dot are coming from in the displayed result. I wondered if the fact that he places single quotes around the argument string might be influencing things. Also the only example he showed of a call where the second argument correctly is only a single token/word, had "Foo" as a value. I doubt very much he has a valid mvs symbol that's actually named "Foo". So I suggest showing what hapens with just one value - a valid symbol name - with and without single quotes. -- Jeremy Nicoll - my opinions are my own. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN