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
 

 

how to relace a string in all members of a PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
vikram

New User


Joined: 08 Mar 2005
Posts: 8

PostPosted: Mon Nov 27, 2006 5:17 pm    Post subject: how to relace a string in all members of a PDS
Reply with quote

Hi

I have a PDS and want to change a particular string say tdb292.I want to search for this string in all members of a PDS and change it to tdb294.

How can I do this?
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Mon Nov 27, 2006 5:25 pm    Post subject:
Reply with quote

chg 'tdb292' 'tdb294' all
Back to top
View user's profile Send private message
mansoor22

New User


Joined: 12 Apr 2006
Posts: 3

PostPosted: Mon Nov 27, 2006 6:23 pm    Post subject: Re: how to relace a string in all members of a PDS
Reply with quote

Hi,

With my TSO there is a tool 'PDSMAN' (option - 7) where we can specify the PDS and the string to be modified. This will search all the members of the PDS and replace if any strings are found.

Can anyone let me know if this tool is availale with all the TSO or if there are any similar tools.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 757
Location: Germany

PostPosted: Mon Nov 27, 2006 6:45 pm    Post subject:
Reply with quote

Hi !

In normal IBM environment thers is an old tool named IPOUPDATE.
A IBM-Batch-Utility for replacing Strings in PDS-members. I have posted that here a lot of time.

PDSMAN ore PDSFAST are ISPF-Enhancement-Tolls. Depends if they are installed ore not.

Have a look in your system-lib's for a member named $$$COIBM
This is a sign that IPO is usable. Because this util needs that dummy-member in a PDS.

//STEP1 EXEC PGM=IPOUPDTE,PARM=UPDATE
//SYSPRINT DD SYSOUT=*
//?DD1 DD DISP=SHR,
// DSN=IE31000.ISPF.ISPSLIB

//SYSIN DD *
SYS1.ISPF.ISPEXEC<SYS1.ISPF.SISPEXEC<
SYS1.ISPF.ISPGENU<SYS1.ISPF.SISPGENU<

OldString<NewString

Parm= Update => Do-it
Parm= Check => No real update only display result

Regard, UmeySan
Back to top
View user's profile Send private message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Tue Nov 28, 2006 5:17 pm    Post subject: Re: how to relace a string in all members of a PDS
Reply with quote

Hi Vikram,

i guess Rexx would be quite suitable for ur job.
this can be achieved very easily thru a simple rexx code.

Thanks,
-Kapil.
Back to top
View user's profile Send private message
bbharathiraj
Warnings : 1

New User


Joined: 26 Oct 2006
Posts: 50
Location: Chennai

PostPosted: Thu Nov 30, 2006 1:04 pm    Post subject:
Reply with quote

In file-aid there is an option F;3;6 for mass update of all members in PDS by giving source string and dest string
Back to top
View user's profile Send private message
Jatin saraf

New User


Joined: 30 Mar 2007
Posts: 22
Location: United States of america

PostPosted: Sun Jun 22, 2008 8:56 am    Post subject: Replace a string in all members of a PDS
Reply with quote

Hi, I tried the IPOUPDTE utility to change a particular string in all the members of a pds but its not working. I know that the utility is supported on the mainframe here(as the return code for the job is zero) but the change is not happening. Below is the JCL i am using:-

Code:
         
//*                                                         
//STEP1 EXEC PGM=IPOUPDTE,PARM=UPDATE                       
//SYSPRINT DD SYSOUT=*                                     
//DD1 DD DSN=HNTU099.JCL1(BVSAD928),DISP=SHR               
//SYSIN DD *                                               
  DEV<ABC<                                             
/*


Can somebody suggest me a solution?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sun Jun 22, 2008 2:35 pm    Post subject:
Reply with quote

Once again, in the light of responses to this thread, I would use an ISPF EDIT macro.

Fileaid, and other products, and even IPOUPDATE may not always be available on any given system. By sticking to the bare basic principles you will have a method of achieving what you want and also the fact that the tool will be transportable to virtually any z/OS site with minimal changes required for it to work.
Back to top
View user's profile Send private message
abhishek dadhichi

New User


Joined: 19 Apr 2007
Posts: 37
Location: Bangalore

PostPosted: Mon Jun 23, 2008 10:04 am    Post subject: Reply to: how to relace a string in all members of a PDS
Reply with quote

Hi ,

You can use File-Aid option 3.6 and then type Change command with the required string to be changed throughout the whole PDS.


Regards,
Abhi
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jun 23, 2008 11:36 am    Post subject:
Reply with quote

Hello,

Quote:
You can use File-Aid option 3.6
Only if the system has fileaid. Many do not. . .
Back to top
View user's profile Send private message
tangentray

New User


Joined: 30 Dec 2006
Posts: 20
Location: Kolkata, India

PostPosted: Mon Jun 23, 2008 4:44 pm    Post subject:
Reply with quote

I would go with expat's solution.

Record a macro:

e
c all tdb292 tdb294
F3
tab

edit the macro by adding a loop of as many members you have in the PDS. Position your cursor on the first member and ru the macro. All should be done. icon_biggrin.gif
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 -> JCL & VSAM 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