MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Location of string?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
kirmvs
Beginner


Joined: 07 Apr 2004
Posts: 5
Topics: 3

PostPosted: Mon Apr 12, 2004 6:59 pm    Post subject: Location of string? Reply with quote

hi,

Is there a function/code (CLIST/File-Aid/Rexx) which returns the location of a string in a record.


Thanks,

Kiran
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Mon Apr 12, 2004 7:11 pm    Post subject: Reply with quote

The REXX function POS("needle",haystack) returns a numeric value of the location of "needle" within the string haystack. There is also a similar function WORDPOS.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group