|
|
| Author |
Message |
vijayalayancse
New User
Joined: 29 Aug 2005 Posts: 16 Location: Chennai
|
|
|
|
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 |
|
 |
References
|
Posted: Fri Oct 14, 2005 2:02 pm Post subject: Re: How to find '&aa' in RExx? |
 |
|
|
 |
MGIndaco
Moderator
Joined: 10 Mar 2005 Posts: 479 Location: Milan, Italy
|
|
|
|
| Only to clarify one doubt... &aa is a string, not a variable... is true? |
|
| Back to top |
|
 |
Kevin
Active User
Joined: 25 Aug 2005 Posts: 256
|
|
|
|
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 |
|
 |
Paddy
Active User
Joined: 12 Sep 2005 Posts: 53 Location: Paris France
|
|
|
|
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 |
|
 |
Kevin
Active User
Joined: 25 Aug 2005 Posts: 256
|
|
|
|
Sorry, I was somewhat incorrect. You're right, FIND is a legitimate function, although, the manual does state that WORDPOS is the preferred function.  |
|
| Back to top |
|
 |
|
|