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
 

 

Find and replace in members of PDS

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

New User


Joined: 11 Feb 2008
Posts: 14
Location: Chennai

PostPosted: Mon Mar 03, 2008 6:46 am    Post subject: Find and replace in members of PDS
Reply with quote

Hi Please find exact requirment below:

I have a PDS 'A' with several members. Requirement is to create a replica of all the members in a separate PDS 'B'.

But while doing this i have to search for few parameters in the members of PDS 'A' like:

LRECL=X.
RECFM=FB

And the correcponding members in PDS 'B' must have

LRECL=Y
RECFM=F

Thanks
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Mon Mar 03, 2008 8:03 am    Post subject: Reply to: Find and replace in members of PDS
Reply with quote

OK. And .... ?? (what's the question?).
Back to top
View user's profile Send private message
prabhu118
Currently Banned

New User


Joined: 11 Feb 2008
Posts: 14
Location: Chennai

PostPosted: Mon Mar 03, 2008 1:46 pm    Post subject: Reply to: Find and replace in members of PDS
Reply with quote

Apologize if the requirement is not posted clearly..

Have to copy all the members in PDS 'A' to PDS 'B' ...

But all the lrecl=X in members of PDS 'A' must be LRECL=Y in the corresponding members in PDS 'B'.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Mon Mar 03, 2008 2:13 pm    Post subject: Reply to: Find and replace in members of PDS
Reply with quote

use option 3.3 to copy the existing dataset to the new one,
afterwards use the ...

http://www.ibmmainframes.com/viewtopic.php?t=25947&highlight=apply

writing an inner macro on th model of those posted ( $renum )
to issue as many

Code:
Address ISREDIT CHANGE "'from1' 'to1' all"
Address ISREDIT CHANGE "'from2' 'to2' all"
Address ISREDIT CHANGE "'from3' 'to3' all"
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 755
Location: Germany

PostPosted: Mon Mar 03, 2008 4:22 pm    Post subject:
Reply with quote

Hi !

First copy as enrico-sorichetti told you.
For the member-change you could use old ibm-utility IPOUPDTE.
This Tool changes Strings old in new in all Members of a PDS.
Very old IBM-Utility but still alive.

Check = only a simulation
UPDATE = real modifikation

//UPDAT1 EXEC PGM=IPOUPDTE,
//* PARM='UPDATE'
// PARM='CHECK'
//┬žDD01 DD DISP=SHR,DSN=IE31000.LITTLE.HUGO
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
BWS8<MT81<
BWS9<MT91<

Old-String<New-String<
//

Regards, UmeySan
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 Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm


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