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 

To replace a string in all members of a PDS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
gsat
Beginner


Joined: 24 Nov 2005
Posts: 9
Topics: 3

PostPosted: Thu Nov 24, 2005 7:21 am    Post subject: To replace a string in all members of a PDS Reply with quote

Hi all,
I need to replace a string in the accounting info in all members (JCLs) in a PDS (JCL LIB).
Is there any way to do it using either Fileaid batch or sort?
If not is there any Rexx utility that could do this?
_________________
Thanks,
sathya
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Thu Nov 24, 2005 7:30 am    Post subject: Reply with quote

Please search before posting.

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


Last edited by vkphani on Thu Nov 24, 2005 7:31 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Nov 24, 2005 7:30 am    Post subject: Reply with quote

gsat,

Try this

Code:

//STEP0100 EXEC PGM=FILEAID                                   
//SYSPRINT DD SYSOUT=*                                       
//DD01     DD DSN=YOUR PDS,
//            DISP=SHR
//SYSIN    DD  *                                             
$$DD01 UPDATE EDITALL=(1,0,C'gsat',C'mvsforums')                 
/*   


If you want only specific members to be updated then use the members parm
Code:

$$DD01 UPDATE MEMBERS=gs*,                                 
              EDITALL=(1,0,C'gsat',C'mvsforums')


This will update all the members whose names begin with gs

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
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities 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