IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Using '&' in a search string


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ramya A

Active User


Joined: 26 Jul 2004
Posts: 104

PostPosted: Wed Oct 03, 2007 8:18 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Oct 03, 2007 8:20 pm
Reply with quote

The "&" means boolean AND in REXX. Use a hexadecimal string instead.

O.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Wed Oct 03, 2007 8:45 pm
Reply with quote

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
View user's profile Send private message
Ramya A

Active User


Joined: 26 Jul 2004
Posts: 104

PostPosted: Wed Oct 03, 2007 11:39 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts file manager is doing string conversion IBM Tools 3
Search our Forums:

Back to Top