IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

ADRDSSU: Restore VSAM and rename


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pietras65

New User


Joined: 03 Aug 2013
Posts: 5
Location: Poland

PostPosted: Wed Aug 07, 2013 1:58 pm
Reply with quote

Hello, I faced with the following two problems when I tried to restore VSAM data sets from logical dump:

e.g. dumped VSAM names in ds SYSU.DUMP.VSAMS:

SYSU.EXAMPLE.VSAM1
SYSU.EXAMPLE.VSAM1.ABINDEX
SYSU.EXAMPLE.VSAM1.ABDATA

SYSU.VSAM2.
SYSU.VSAM2.CDINDEX
SYSU.VSAM2.CDDATA


1) I wanted to have new name (add one qualifier) using RENAMEU:
RENAMEU((SYSU.**,SYSU.RECO.**))

I googled and I'm not sure whether RENAMEU can be useful.
What should I do to gain this? assume that I need to change about 100 vsam data sets.

2) when I restored vsam I got:
SYSU.VSAM2.
SYSU.VSAM2.I
SYSU.VSAM2.D

instead of:
SYSU.VSAM2.
SYSU.VSAM2.CDINDEX
SYSU.VSAM2.CDINDEX

how to restore with the original index and data component name?

regards
pietras65
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 07, 2013 3:00 pm
Reply with quote

Not sure that you can use the RENAMEU parameter to add a level into the DSNAME with DFdss.

You will probably have to RENAMEU each cluster individually. Again not sure about all of the components within, if you will have to rename those individually as well.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Aug 07, 2013 4:57 pm
Reply with quote

The Storage Administration Reference manual tells you that you cannot change the number of qualifiers in a data set name unless you use the fully qualified name for the old and new names.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 581
Location: London

PostPosted: Thu Sep 05, 2013 2:46 pm
Reply with quote

RENAMEU requires the full source and target name if adding or removing a dataset qualifier.
e.g.
RENAME( -
(SOURCE.ONE, TGT.ONE.TWO) -
(SOURCE.TWO, TGT.TWO.TWO ) -
)

The change from INDEX and DATA to D & I shouldn't be a concern. I think D & I are the default component suffix these days so DFDSS has renamed them for you. It'll still work fine.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts CVDA value for RRDS VSAM dataset. CICS 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
Search our Forums:

Back to Top