If you have File Manager at your shop you can find and replace quite easily like shown below.
//STEP0100 EXEC PGM=FILEMGR //SYSPRINT DD SYSOUT=* //MYPDS DD DISP=SHR,DSN=Your PDS to be updated/replaced //SYSIN DD * $$FILEM FCH INPUT=MYPDS C '$REPLACEME$' 'Updated string' Thanks, Kolusu IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> wrote on 12/15/2014 04:10:13 PM: > From: Lizette Koehler <stars...@mindspring.com> > To: IBM-MAIN@LISTSERV.UA.EDU > Date: 12/15/2014 04:10 PM > Subject: Re: Utility to replace occurrences of string in PDS? > Sent by: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> > > See if you have IPOUPDTE in your system. Linklib maybe. > > Or if you have the TAPETOOLS from IBM - it has an equivalent. > > Lizette > > > > -----Original Message----- > > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > > Behalf Of Charles Mills > > Sent: Monday, December 15, 2014 5:08 PM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Utility to replace occurrences of string in PDS? > > > > I'm looking for a reasonable way to replace all occurrences of a given > string in a > > dataset. UNIX shell command? DFSMS utility that I have forgotten about? > CBT > > program? > > > > Nothing fancy. I have a PDS with seven or so members. I want to replace > all > > instances of $REPLACEME$ with NEWSTRING. I know which members contain > > the pattern so I could live with *either* something that did the whole > PDS, or > > something where I had to specify the specific members. First choice would > be > > something that copied the PDS, but I can make my own copy and live with a > > replace-in-place. > > > > I could write Rexx to do it so that's my bottom line -- it has to be > easier than writing a > > Rexx program. > > > > Any suggestions? > > > > Charles > > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN