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
 
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: 4650
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: 10373
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: 757
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 Historical/statistical details for me... elixir1986 TSO/ISPF 13 Wed Aug 30, 2017 9:02 pm
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am

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