View previous topic :: View next topic
|
Author |
Message |
Select-mf
New User
Joined: 11 May 2007 Posts: 42 Location: bangalore
|
|
|
|
MY requirement is :- I want to replace a particular string from different members of a same PDS. Suppose My PDS have 45 members and the string I want to replace is 'TEXT'. This string can be present in any of the members.
Do you have any TSO command or through REXX programming, we can replace the string with your desired string in all the members of the same PDS without actually opening each member and replacing one by one. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
This issue was discussed many times in the past. Please search before posting. Here is one example.
O. |
|
Back to top |
|
|
Select-mf
New User
Joined: 11 May 2007 Posts: 42 Location: bangalore
|
|
|
|
That means we can achieve this only through REXX programming. I am new to REXX, let me try the code for this
Thanks |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
It doesn't have to be REXX: For complex string manipulations, I prefer to write my edit macros in COBOL. For huge libraries, obtaining the list of members is fasters when reading the PDS directory in Assembler.
However, for "normal" missions, REXX would be an excellent solution.
O. |
|
Back to top |
|
|
kamran
New User
Joined: 01 May 2005 Posts: 55
|
|
|
|
Hi
I supposed you need to change string within each members and not member names.
So if your need is this the best way that you don't pay attention to process each member is to call the so calles utility of IBM "IPOUPDTE" through rexx.
I hope it works for you. |
|
Back to top |
|
|
kamran
New User
Joined: 01 May 2005 Posts: 55
|
|
|
|
Hi again
Why don't you call it (IPOUPDTE) in batch? |
|
Back to top |
|
|
rohitsir
New User
Joined: 21 Aug 2007 Posts: 32 Location: USA
|
|
|
|
You can also achieve this thing thru fileaid. If your member list is limited say under 100, then fileaid will be sufficient. You don't even have to code any thing. |
|
Back to top |
|
|
Select-mf
New User
Joined: 11 May 2007 Posts: 42 Location: bangalore
|
|
|
|
Could you please tell me the options in File-Aid through which I can achieve this? |
|
Back to top |
|
|
rohitsir
New User
Joined: 21 Aug 2007 Posts: 32 Location: USA
|
|
|
|
Goto file-aid > UTILITIES > SEARCH/UDPATE. Follow the screen instructions then. |
|
Back to top |
|
|
Select-mf
New User
Joined: 11 May 2007 Posts: 42 Location: bangalore
|
|
|
|
Yes Rohit, Its working....Thanks |
|
Back to top |
|
|
|