Re: Utility to replace occurrences of string in PDS?

2014-12-25 Thread Shmuel Metz (Seymour J.)
In 00b301d018c4$5b2655c0$11730140$@mcn.org, on 12/15/2014 at 04:08 PM, Charles Mills charl...@mcn.org said: I'm looking for a reasonable way to replace all occurrences of a given string in a dataset. Can you live with equal length replacements? it has to be easier than writing a Rexx

Re: Utility to replace occurrences of string in PDS?

2014-12-17 Thread David Price
PDS or STARTOOL Usage The PDS package (free from CBT file 182) and Serena's STARTOOL product were mentioned earlier. Here's a note about their syntax. The TSO command PDS pdsname REPL : !stringA!stringB! WRITE is all you need. As a TSO command it is easy to put in a batch job. [Use

Re: Utility to replace occurrences of string in PDS?

2014-12-16 Thread Kjell Holmborg
You may also use FileAid if you have that installed instead of FileManager. /Kjelle -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Re: Utility to replace occurrences of string in PDS?

2014-12-16 Thread CM Poncelet
... and also PGM=PDSM18 (possibly part of PDSMAN) if you have it. Kjell Holmborg wrote: You may also use FileAid if you have that installed instead of FileManager. /Kjelle -- For IBM-MAIN subscribe / signoff / archive

Re: Utility to replace occurrences of string in PDS?

2014-12-16 Thread David Mingee
I think the requirement for a member name $$$COIBM has been removed. I have used IPOUPDTE on 3 different sites in the past few years without this restriction. Many of the other utilities are great, but some cost money or may not be installed at some sites, so IPPOUPDTE is a great option. It

Re: Utility to replace occurrences of string in PDS?

2014-12-16 Thread Charles Mills
When I tried IPOUPDTE on my PDS I got an error IPO006 FILE @PDS INVALID FOR IPOUPDTE that I resolved by adding a member $$$COIBM, so I conclude that the restriction is still there, at least on the copy on my V2R1 system. It's a GREAT little utility except for the stupid kneecapping. FWIW,

Re: Utility to replace occurrences of string in PDS?

2014-12-16 Thread van der Grijn, Bart (B)
There used to be a zap for IPOUPDTE to get rid of the $$$COIBM requirement. Google IPOUPDTE ZAP. Don't know if they still work. But it is likely worth the quick search and test if you need the functionality. Bart -Original Message- From: IBM Mainframe Discussion List

Re: Utility to replace occurrences of string in PDS?

2014-12-16 Thread Charles Mills
Yeah, thanks, down at the bottom of https://groups.google.com/forum/#!topic/bit.listserv.ibm-main/473KcCMYWNk. I've got it solved. Thanks, Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of van der Grijn, Bart (B) Sent:

Re: Utility to replace occurrences of string in PDS?

2014-12-16 Thread Tony's Basement Computer
This thread brings back a memory from back in the day when they actually paid me to be a SYSPROG. IPOUPDTE was all we had so we added a step to load the sacred member, do the changes, delete the member in a following step. Annoying, like my new Keurig coffee machine. -Original

Re: Utility to replace occurrences of string in PDS?

2014-12-16 Thread Chris Hoelscher
I am going to suggest something very silly here Why not write an edit macro to make the change(s) to one member And then write a rexx to execute this macro against every member?? ISREDIT MACRO ISREDIT (STATUS) = USER_STATE ISREDIT RESET SPECIAL

Re: Utility to replace occurrences of string in PDS?

2014-12-16 Thread Charles Mills
Yup. Pretty much done. I actually had some Rexx around to do some of the changes itself so I am not using edit any more. Requirement was for batch. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Chris Hoelscher Sent:

Re: Utility to replace occurrences of string in PDS?

2014-12-16 Thread Charles Mills
Annoying indeed. I played with insert $$$COIBM and then delete it again, and I played with leaving a $$$COIBM in there but with our copyright message rather than IBM's. I don't think the name $$$COIBM has any particular legal standing. Charles -Original Message- From: IBM Mainframe

Re: Utility to replace occurrences of string in PDS?

2014-12-16 Thread Paul Gilmartin
On Tue, 16 Dec 2014 13:53:49 -0800, Charles Mills wrote: Yup. Pretty much done. I actually had some Rexx around to do some of the changes itself so I am not using edit any more. Requirement was for batch. That shouldn't be an obstacle; I believe ISPF EDIT works in batch. (It's just

Utility to replace occurrences of string in PDS?

2014-12-15 Thread Charles Mills
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

Re: Utility to replace occurrences of string in PDS?

2014-12-15 Thread Lizette Koehler
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

Re: Utility to replace occurrences of string in PDS?

2014-12-15 Thread John McKown
Is IPOUPDTE still around? I'm at home right now can't easily look. On Dec 15, 2014 6:08 PM, Charles Mills charl...@mcn.org wrote: 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

Re: Utility to replace occurrences of string in PDS?

2014-12-15 Thread Lizette Koehler
Server Pac CPPUPDTE is a program that enables you to search for a string across all the members of a PDS and replace that string with another string. CPPUPDTE is loaded into the LOADLIB data set (hlq.order_number.LOADLIB) during ServerPac installation. It also has an alias name of IPOUPDTE

Re: Utility to replace occurrences of string in PDS?

2014-12-15 Thread Sri h Kolusu
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=* //MYPDSDD DISP=SHR,DSN=Your PDS to be updated/replaced //SYSINDD * $$FILEM FCH INPUT=MYPDS C '$REPLACEME$' 'Updated string' Thanks,

Re: Utility to replace occurrences of string in PDS?

2014-12-15 Thread Anthony Thompson
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:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Charles Mills Sent: Tuesday, 16 December 2014 9:38 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject:

Re: Utility to replace occurrences of string in PDS?

2014-12-15 Thread Charles Mills
Bingo! You guys and gals are the best! http://www-03.ibm.com/systems/z/os/zos/installation/cppupdte.txt Seems to be around somewhere: BATCH JCL TAILORING AIDUPDATE CONTROL STATEMENTS MEMBER COMMENTS |1|2|3|4|5|

Re: Utility to replace occurrences of string in PDS?

2014-12-15 Thread Charles Mills
Hmmm. Also Important: For CPPUPDTE and IPOUPDTE to work, each PDS to be searched MUST contain a member named $$$COIBM. Obviously that is something I could create but that creates problems of its own. May keep looking a little. Not sure if I have File Manager. Charles -Original

Re: Utility to replace occurrences of string in PDS?

2014-12-15 Thread Thomas Conley
On 12/15/2014 7:08 PM, Charles Mills wrote: 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

Re: Utility to replace occurrences of string in PDS?

2014-12-15 Thread Ed Finnell
Bruce and Steve over at Startools might disagree! Anybody heard from JK since retirement? In a message dated 12/15/2014 6:54:49 P.M. Central Standard Time, pinnc...@rochester.rr.com writes: FILE182 on your CBTTAPE dial, www.cbttape.org. The one, the only, PDS.

Re: Utility to replace occurrences of string in PDS?

2014-12-15 Thread Dave Salt
If you have SimpList take a look at the CHGALL command. Enter it on a member list command line and a pop-up panel prompts you for required and optional parameters. If there are any members you don't want changed you can filter the member list many different ways before entering the CHGALL