View previous topic :: View next topic
|
Author |
Message |
Soumya Roy
New User
Joined: 19 Feb 2009 Posts: 10 Location: Bangalore
|
|
|
|
Hi,
I'm coding an ISPF Edit Macro. I'm using the folowing code to insert:
"ISREDIT LINE_AFTER .ZCSR = 'This is the start of PARA1'"
Now I need to include the PARA1 name also so that the inserted line will look like:
'This is the start of PARA1: ABC'
I have taken the Para name into a variable XYZ(using the substring, POS functions). I am now trying to execute the code as:
"ISREDIT LINE_AFTER .ZCSR = 'This is the start of PARA1: (xyz)'".
But this code is not working. Can anybody please share any idea? Please let me know if there is any confusion/doubt. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I usually build the data as a variable and then insert the variable
Code: |
"ISREDIT LINE_AFTER .ZCSR = (variable_name)" |
|
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Rexx will try to resolve the string first. The stuff within quotes does not get resolved: outside of quotes is.
Code: |
variable_name = "This is the start of PARA1: "para1 |
|
|
Back to top |
|
|
Soumya Roy
New User
Joined: 19 Feb 2009 Posts: 10 Location: Bangalore
|
|
|
|
Hi All,
Thanks for your suggestions.
I was able to execute the code like:
STRING = " This is the start of the Para "PARA1"';"
"LINE_AFTER .ZCSR = (STRING)" |
|
Back to top |
|
|
|