View previous topic :: View next topic
|
Author |
Message |
Ramya A
Active User
Joined: 26 Jul 2004 Posts: 104
|
|
|
|
Hi,
I'm using an edit macro in REXX where I'm trying to find for a word containing '&'
Eg. 'Find all DSN=XXXX(&MEM)'
For some reason, this command returns a RC of 4 (String not found) in the macro. But if I copy the same command and apply directly in the command line of the edited dataset, the search string is found. Also, all other search strings without any '&' sign works fine in the same macro.
Is there any specifc character of ISPF or REXX that doesn't allow the usage of '&' in the search string?
Any information about this would be really helpful. Thanks. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
The "&" means boolean AND in REXX. Use a hexadecimal string instead.
O. |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi,
The command line commands sometimes wont work in pgm's ... bcz they are reserved words in pgm codes ... eg. & is reserved as AND in REXX ... |
|
Back to top |
|
|
Ramya A
Active User
Joined: 26 Jul 2004 Posts: 104
|
|
|
|
But when I give the whole ISREDIT command inside double qoutes, will it still be considered as REXX operand??
"Find all DSN=XXXX(&MEM)" |
|
Back to top |
|
|
|