Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us