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 recover an uncataloged VSAM data set

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
archanamuthukrishnan

New User


Joined: 12 Oct 2016
Posts: 5
Location: India

PostPosted: Wed Jan 11, 2017 6:18 pm    Post subject: how to recover an uncataloged VSAM data set
Reply with quote

Hi,

I renamed VSAM CSI DS using IDCAMS

//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
ALTER -
SYSU.TEST.V1.CSI -
NEWNAME(SYS1.TEST.V1.CSI)

/*

The DS name got renamed but it is not catalogued, I couldn't find the DS anywhere.

Is there any possible to recover the uncatalogued VSAM DS?
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7949
Location: Bellevue, IA

PostPosted: Wed Jan 11, 2017 7:28 pm    Post subject: Reply to: how to recover an uncataloged VSAM data set
Reply with quote

Are the SYSU and SYS1 high level qualifiers in the same catalog? If not, then you could have attempts to locate the data set going to the SYS1 catalog and failing to locate the data set because ALTER NEWNAME on a VSAM non-SMS data set will keep the entry in the source catalog (which would be the SYSU catalog). Assuming you knew to check in advance which volume the data set was on, go to ISPF 3.4 and look on that volume instead of going through the catalog. If the data set is there with the new HLQ, then you'll need to uncatalog the old name and catalog the new name to get the catalog back in sync.

Issues like this are why the response on this forum so often is to contact your site support group -- they know about the catalog structure for your site.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7949
Location: Bellevue, IA

PostPosted: Wed Jan 11, 2017 7:59 pm    Post subject: Reply to: how to recover an uncataloged VSAM data set
Reply with quote

Actually, thinking more about it -- you have one option. If you do the uncatalog, you'll wipe out the VVDS entry. You need to do an ALTER NEWNAME(SYSU...) to get the catalog back in sync. Then use ISMF or DFDSS or EXPORT / IMPORT (IDCAMS commands) to move the data set and update the HLQ.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 102
Location: Switzerland

PostPosted: Thu Jan 12, 2017 12:54 pm    Post subject:
Reply with quote

do you have multi-level aliases? assuming that SYSU is not on the master catalog, you might be able to define alisas SYS1.TEST to the catalog the dataset is cataloged in. Alternatively rename it back using the CATALOG parameter. aliaslevel gt 1 can be set dynamically.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
No new posts Sorting group data rajella DFSORT/ICETOOL 4 Sun Jan 22, 2017 11:32 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm


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