Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts Historical/statistical details for me... elixir1986 TSO/ISPF 13 Wed Aug 30, 2017 9:02 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts String after '.' (period) is not copy... balaji81_k SYNCSORT 6 Wed Aug 23, 2017 9:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us