Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Replacing a string from different members of a same PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Replacing a string from different members of a same PDS
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: 2360
Location: Israel

PostPosted: Tue Sep 04, 2007 4:35 pm    Post subject:
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    Post subject: Reply to: Replacing a string from different members of a sam
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: 2360
Location: Israel

PostPosted: Tue Sep 04, 2007 6:44 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Reply to: Replacing a string from different members of a sam
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    Post subject: Reply to: Replacing a string from different members of a sam
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    Post subject:
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    Post subject: Reply to: Replacing a string from different members of a sam
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us