IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Replacing a string from different members of a same PDS


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Select-mf

New User


Joined: 11 May 2007
Posts: 42
Location: bangalore

PostPosted: Tue Sep 04, 2007 4:20 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Sep 04, 2007 4:35 pm
Reply with quote

This issue was discussed many times in the past. Please search before posting. Here is one example.

O.
Back to top
View user's profile Send private message
Select-mf

New User


Joined: 11 May 2007
Posts: 42
Location: bangalore

PostPosted: Tue Sep 04, 2007 5:16 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Sep 04, 2007 6:44 pm
Reply with quote

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
View user's profile Send private message
kamran

New User


Joined: 01 May 2005
Posts: 55

PostPosted: Tue Sep 04, 2007 6:57 pm
Reply with quote

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
View user's profile Send private message
kamran

New User


Joined: 01 May 2005
Posts: 55

PostPosted: Tue Sep 04, 2007 7:01 pm
Reply with quote

Hi again
Why don't you call it (IPOUPDTE) in batch?
Back to top
View user's profile Send private message
rohitsir

New User


Joined: 21 Aug 2007
Posts: 32
Location: USA

PostPosted: Tue Sep 04, 2007 7:59 pm
Reply with quote

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
View user's profile Send private message
Select-mf

New User


Joined: 11 May 2007
Posts: 42
Location: bangalore

PostPosted: Wed Sep 05, 2007 6:41 pm
Reply with quote

Could you please tell me the options in File-Aid through which I can achieve this?
Back to top
View user's profile Send private message
rohitsir

New User


Joined: 21 Aug 2007
Posts: 32
Location: USA

PostPosted: Wed Sep 05, 2007 8:51 pm
Reply with quote

Goto file-aid > UTILITIES > SEARCH/UDPATE. Follow the screen instructions then.
Back to top
View user's profile Send private message
Select-mf

New User


Joined: 11 May 2007
Posts: 42
Location: bangalore

PostPosted: Thu Sep 06, 2007 10:08 am
Reply with quote

Yes Rohit, Its working....Thanks
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts file manager is doing string conversion IBM Tools 3
Search our Forums:

Back to Top