I think that it is more of a REXX treatment of strings.

When the REXX instruction:
CMD = "CHANGE ALL SYSDA " IMPLUNIT
Is processed, CMD becomes the full string "CHANGE ALL SYSDA SYSDA"
But in the second invocation, it treats it as two different parameters to 
ISREDIT so 
Parm #1 is the string "CHANGE ALL SYSDA" and the second is the string  
"IMPLUNIT"
I don't think REXX is performing a variable substitution in this case.

I wonder if it does something differently if you were to use single quotes 
around the command:
' ISREDIT CHANGE ALL SYSDA ' IMPLUNIT

Al Nims
Systems Admin/Programmer 3
EI&O
University of Florida
(352) 273-1298

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Donald Likens
Sent: Thursday, November 05, 2015 5:14 PM
To: [email protected]
Subject: ISREDIT REXX CHANGE no variable substitution

Can anyone explain why the second try does not work as expected?

ISREDIT "MACRO"   
Say "IMPLUNIT" IMPLUNIT                       
CMD = "CHANGE ALL SYSDA " IMPLUNIT       
ISREDIT CMD            

    Results: 
    IMPLUNIT SYSDA
    SYSDA is changed to SYSDA

ISREDIT "MACRO"   
Say "IMPLUNIT" IMPLUNIT                       
ISREDIT "CHANGE ALL SYSDA " IMPLUNIT     

   Results: 
   IMPLUNIT SYSDA
   SYSDA is changed to IMPLUNIT             

----------------------------------------------------------------------
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

Reply via email to