IBM MAINFRAME HELP & SUPPORT FORUMS
Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

How to find '&aa' in RExx?

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> CLIST & REXX
View previous topic :: View next topic  
Author Message
vijayalayancse



Joined: 29 Aug 2005
Posts: 26
Location: Chennai

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

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  
MGIndaco



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

Posted: Fri Oct 14, 2005 2:25 pm    Post subject:  

Only to clarify one doubt... &aa is a string, not a variable... is true?
Back to top  
Kevin



Joined: 25 Aug 2005
Posts: 255

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

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



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

Posted: Tue Oct 18, 2005 8:55 pm    Post subject: Find  

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



Joined: 25 Aug 2005
Posts: 255

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

Sorry, I was somewhat incorrect. You're right, FIND is a legitimate function, although, the manual does state that WORDPOS is the preferred function. :oops:
Back to top  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> CLIST & REXX
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM