I typically use the PDSPDS program from CBT file 40. Uncertain who to credit 
that too.

Ant.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Charles Mills
Sent: Tuesday, 16 December 2014 9:38 AM
To: [email protected]
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 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to