Page 1 of 1

Find/replace pattern in all PDS members ?

PostPosted: Fri Nov 16, 2012 6:54 pm
by Nenad V
Hello,
I need to find a string in all PDS members and replace it with another string. There are plenty examples and utilities to do this for pds with lrecl=80, but I'm dealing with PDS with lrecl > 80.
Any help will be appreciated .
Regards,
Nenad

Re: Find/replace pattern in all PDS members ?

PostPosted: Fri Nov 16, 2012 7:44 pm
by Akatsukami
File-AID can do this; File Mangler probably can, although I'd have to read the documentation to be 100% certain. If all else fails, I'd advise writing a little bit of Rexx to do this directly if the volume of data is low, or to tailor a skeleton using your sort product if it is not.

Re: Find/replace pattern in all PDS members ?

PostPosted: Fri Nov 16, 2012 10:15 pm
by Peter_Mann
Be careful when using a tool like FILE-AID, it will replace exactly what you tell it to, from string and to string sometime are not equal lenghts and are not what you'd expect, if dealing with JCL its much harder sometime, I've done this before changing my JCL PDS from one ID to another only to find the repalced value caused syntax errors, but that was my opportunity to learn to be more careful :)

Re: Find/replace pattern in all PDS members ?

PostPosted: Fri Nov 16, 2012 10:27 pm
by Akatsukami
Peter_Mann wrote:Be careful when using a tool like FILE-AID, it will replace exactly what you tell it to

This is a common problem with computers, that they do what you say instead of what you mean :geek: