Hi I'm writing a REXX code for my requirement and it works fine. The problem is my code is not fetching the input from command line and storing into the input variable.
Below is the simple REXX code which I used and it worked fine.
/* REXX - SIMPR */
ARG MEM
SAY 'ENTERD:' MEM
EXIT
I entered "TSO SIMPR R2"
Output: "ENTERD: R2"
---------------------------------------------------------------------------------------------------
Below is my REXX Macro code which I’m having problem with.
/* REXX - MACROR */
ARG RGN
"ISREDIT MACRO "
"ISPEXEC CONTROL ERRORS RETURN"
X = MSG("OFF")
"ISREDIT (PDSNAME) = DATASET"
"ISREDIT (MEMNAME) = MEMBER"
SAY PDSNAME
SAY MEMNAME
SAY RGN
EXIT
I Entered "MACROR R2"
Output: TCU.CA7.HIP
TEST
******
It has taken null value inside the variable RGN instead of R2.
Please advise how to pass input to the variable RGN from the command line.
Thanks,
Anil