View previous topic :: View next topic |
Author |
Message |
kirmvs Beginner
Joined: 07 Apr 2004 Posts: 5 Topics: 3
|
Posted: Wed Apr 07, 2004 11:11 pm Post subject: Search and replace in multiple members of a pds |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
kirmvs Beginner
Joined: 07 Apr 2004 Posts: 5 Topics: 3
|
Posted: Thu Apr 08, 2004 5:05 pm Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
|
Posted: Fri Apr 09, 2004 3:29 am Post subject: |
|
|
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 |
|
|
|
|