View previous topic :: View next topic |
Author |
Message |
gsat Beginner
Joined: 24 Nov 2005 Posts: 9 Topics: 3
|
Posted: Thu Nov 24, 2005 7:21 am Post subject: To replace a string in all members of a PDS |
|
|
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 |
|
|
vkphani Intermediate
Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Nov 24, 2005 7:30 am Post subject: |
|
|
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 |
|
|
|
|