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 

Search and replace in multiple members of a pds

 
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: Wed Apr 07, 2004 11:11 pm    Post subject: Search and replace in multiple members of a pds Reply with quote

Hi,

I am trying to search for and replace a variable length string between two fixed words 'XXX' and 'YYY', which can occur anywhere in the member of a PDS. It would be great if someone can assist me in acheiving this using CLIST.

Thanks,

Kiran
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Wed Apr 07, 2004 11:33 pm    Post subject: Reply with quote

kirmvs,

Please search before posting. Check this topic which discusses similar requirement.

http://www.mvsforums.com/helpboards/viewtopic.php?t=1286&highlight=replace

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kirmvs
Beginner


Joined: 07 Apr 2004
Posts: 5
Topics: 3

PostPosted: Thu Apr 08, 2004 5:05 pm    Post subject: Reply with quote

I am not sure if it can be handled in the same way. Let me explain
The members contain SQL

Replace view v_name
AS locking table_name for Read
select
........

Here the phrase, "As locking table_name for read" is to be replaced with a new one. This phrase changes in length and text with a change in the table_name from member to member, but always falls between "As" and "select" keywords.

Can this be done in CLIST?

Thanks,

Kiran
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Fri Apr 09, 2004 3:29 am    Post subject: Reply with quote

kirmvs,

File-aid can be used to replace strings very easily. The above link has an example of file-aid

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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