|
View previous topic :: View next topic
|
| Author |
Message |
Sathish Gurumoorthy
New User
Joined: 12 Feb 2009 Posts: 33 Location: Chennai, India
|
|
|
|
Dear friends
I want to change the symbolic parameters in all the Procs. So I use below edit macro
| Code: |
/* REXX */
ADDRESS ISREDIT "MACRO PROCESS"
ADDRESS ISREDIT "(MEMNAME) = MEMBER"
ADDRESS ISREDIT "C ALL 'UNIT=WORK' 'UNIT=&UNIT'"
IF RC = 0 THEN
SAY 'MEMBER: ' MEMNAME
ADDRESS ISREDIT "END"
EXIT |
I've input statement as
| Code: |
| //SORTWK01 DD UNIT=WORK,SPACE=&SPC1 |
But the output I get is below..
| Code: |
| //SORTWK01 DD UNIT=,SPACE=&SPC1 |
But it should have changed to UNIT=&UNIT.
It doesn't recognises &UNIT for change command. Could anyone please tell what's the problem in there? |
|
| Back to top |
|
 |
prino
Senior Member

Joined: 07 Feb 2009 Posts: 1325 Location: Vilnius, Lithuania
|
|
|
|
It does recognize &UNIT as an empty string, so the macro is working the way it should work.
Try:
| Code: |
myunit = c2x('UNIT=&UNIT')
"isredit c 'UNIT=WORK' x'"myunit"' all" |
|
|
| Back to top |
|
 |
Sathish Gurumoorthy
New User
Joined: 12 Feb 2009 Posts: 33 Location: Chennai, India
|
|
|
|
| Works cool.. Thank you Prino!! |
|
| Back to top |
|
 |
|
|