Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to find '&aa' in RExx?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
vijayalayancse

New User


Joined: 29 Aug 2005
Posts: 16
Location: Chennai

PostPosted: Fri Oct 14, 2005 2:02 pm    Post subject: How to find '&aa' in RExx?
Reply with quote

I have a problem in find statement while im trying to find '&aa'
it doesnt recognise '&' and following letters.thisis the error im getting:
while putting "trace"

"find '"symHLQ"' next "
"find '"
"&AA"
"find '&AA"
"' next "
"find '&AA' next "

say " rc " rc zerrlm
" rc "
"12"
" rc 12"
rc 12 The first string in a FIND command cannot be a null ('') string.
please, Help me in this regard.
Back to top
View user's profile Send private message
References
PostPosted: Fri Oct 14, 2005 2:02 pm    Post subject: Re: How to find '&aa' in RExx? Reply with quote

MGIndaco

Moderator


Joined: 10 Mar 2005
Posts: 479
Location: Milan, Italy

PostPosted: Fri Oct 14, 2005 2:25 pm    Post subject:
Reply with quote

Only to clarify one doubt... &aa is a string, not a variable... is true?
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 258

PostPosted: Tue Oct 18, 2005 5:44 pm    Post subject: Re: How to find '&aa' in RExx?
Reply with quote

I'm confused. I've never heard of a FIND command in REXX. Usually, when you are looking for a particular string in REXX, you use the POS or LASTPOS commands.

FIND sounds more like an EDIT command.
Back to top
View user's profile Send private message
Paddy

New User


Joined: 12 Sep 2005
Posts: 43
Location: Paris France

PostPosted: Tue Oct 18, 2005 8:55 pm    Post subject: Find
Reply with quote

Hi all,


Find command can be coded FIND(string,phrase) and return the word number in the phrase. POS(string,phrase' return the number of first string's letter in phrase include blank.

Example :

phrase = 'i am Paddy'

FIND('Paddy',phrase) return 3
POS('Paddy',phrase) return 6


I hope to help you

Paddy
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 258

PostPosted: Tue Oct 18, 2005 9:32 pm    Post subject: Re: How to find '&aa' in RExx?
Reply with quote

Sorry, I was somewhat incorrect. You're right, FIND is a legitimate function, although, the manual does state that WORDPOS is the preferred function. icon_redface.gif
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1