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
 
Recover a tape dataset with different file name.

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

Active User


Joined: 06 Jul 2009
Posts: 173
Location: Chennai

PostPosted: Tue May 28, 2013 3:01 pm    Post subject: Recover a tape dataset with different file name.
Reply with quote

Hi,

I have a tape dataset uncataloged, I can recover it by using following JCL but I don't have access to recover it, since it is a prod dataset. Is it possible to recover a uncataloged tape production dataset to a test dataset ?

Example DEV.XXXXX.G3897V00

Code:

//REPROCMD  EXEC PGM=IDCAMS,REGION=3M                 
//SYSPRINT  DD SYSOUT=*                               
//SYSOUT    DD SYSOUT=*                               
//SYSIN     DD *                                       
 DEFINE NONVSAM -                                     
    (NAME(PROD.XXXXX.G3897V00) - 
     DEVICETYPE(CART) -                               
     VOLUME(873256) -                                 
     NORECATALOG)                                     
/*                                                     


Regards,
Magesh
Back to top
View user's profile Send private message

Ranjithkumar

New User


Joined: 10 Sep 2008
Posts: 94
Location: India

PostPosted: Tue May 28, 2013 3:10 pm    Post subject: Reply to: Recover a tape dataset with different file name.
Reply with quote

Use IEBGENER. Make sure you have READ access to the PROD qualifier.

Code:

//TAP2DASD EXEC PGM=IEBGENER                                     
//SYSPRINT DD  SYSOUT=*                                           
//SYSUT1   DD  DSN=PROD.XXXXX.G3897V00,                           
//             DISP=SHR                                           
//SYSUT2   DD  DSN=DEV.XXXXX.X3897,                               
//             DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,               
//             DCB=(*.TAP2DASD.SYSUT1),SPACE=(CYL,(100,100),RLSE),
//             VOL=(,,,50)                                       
//SYSIN    DD DUMMY                                               
//SYSUDUMP DD SYSOUT=*                                           
Back to top
View user's profile Send private message
magesh23586

Active User


Joined: 06 Jul 2009
Posts: 173
Location: Chennai

PostPosted: Tue May 28, 2013 3:23 pm    Post subject: Reply to: Recover a tape dataset with different file name.
Reply with quote

Hi Ranjith, Thanks for the response, The below jcl works for cataloged dataset, Currently dataset set is uncataloged. Needs to be cataloged with different name.

Regards,
Magesh
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8135
Location: East Dubuque, Illinois, USA

PostPosted: Tue May 28, 2013 5:23 pm    Post subject:
Reply with quote

Quote:
Is it possible to recover a uncataloged tape production dataset to a test dataset ?
Depending upon what you mean, possibly.

If you are wanting to copy an uncataloged tape data set to a cataloged disk file name, you can do that by specifying the UNIT and VOL=SER as well as DISP and DSN for the tape data set. If the tape is uncataloged, and has not been scratched, you must provide the data that usually comes from the catalog (that is, the type of tape drive to use and the serial number/name of the tape).

If you are wanting to catalog the tape with a different data set name, this is not generally possible since the tape label contains the data set name and if the catalog data set name does not match the tape label the data set will not be accessible (actually, IIRC the catalog attempt will fail).
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue May 28, 2013 5:28 pm    Post subject:
Reply with quote

Talking to Tape management Support does not help?
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: Tue May 28, 2013 6:53 pm    Post subject:
Reply with quote

And if the tape is a virtual tape, it may not be recoverable at all
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 editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm


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