Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Using '&' in a search string

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Using '&' in a search string
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: 2360
Location: Israel

PostPosted: Wed Oct 03, 2007 8:20 pm    Post subject:
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: 680
Location: NJ

PostPosted: Wed Oct 03, 2007 8:45 pm    Post subject:
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    Post subject: Reply to: Using '&' in a search string
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts String after '.' (period) is not copy... balaji81_k SYNCSORT 6 Wed Aug 23, 2017 9:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us