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

JCL to recover the dataset from TAPE


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

New User


Joined: 29 Aug 2006
Posts: 24

PostPosted: Tue Oct 24, 2006 6:02 pm
Reply with quote

Hi,

We have coded a JCL as below

Code:
//SORT1 EXEC PGM=SORT                                       
//SORTIN  DD DSN=CAMS07.KS9401L.KS9401L.BA.G0243V00,DISP=SHR
//SORTOUT DD DSN=TCAMS01.KS9401L.KS9401L.BA.OCT14,           
//            DISP=(NEW,KEEP,KEEP),                         
//            DATACLAS=DATAFX,                               
//            LRECL=435                                     
//SYSIN DD *                                                 
 SORT FIELDS=COPY                                           
/*               


where

CAMS07.KS9401L.KS9401L.BA.G0243V00 is a tape entry
We get an error
7 DSS4050E - DATA SET NOT FOUND IN CATALOG

Any pointers.

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

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Oct 25, 2006 6:58 am
Reply with quote

Either you misspelled the dsn or the tape file isn't cataloged.

If the 2nd, include the vol ser# of the tape in the JCL.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Wed Oct 25, 2006 2:04 pm
Reply with quote

Noticed you're copying a GDG. If you want the last generation code (0) instead of GxxxxV00.
Back to top
View user's profile Send private message
raghavendraun

New User


Joined: 29 Apr 2005
Posts: 9

PostPosted: Wed Oct 25, 2006 4:20 pm
Reply with quote

In TSO 3.4 option, look for the version if the version is there in catalog then your code should work. Otherwise the dataset is not in catalog.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Fri Oct 27, 2006 12:43 pm
Reply with quote

Hi !

There could be an other reason for not-found in catalog, if you are using a TapeManagementSystem like CA1 ore something like that.

The DSN could be expired in the MVS masterCatalog but will still be in archive of the TapeManagementSystem. If this is in affect, you could have
access to it using your TapemanagementSystem for re-cataloging the vol-ser of the tape.

Regards, UmeySan
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Free space of a mulitvolume PS datase... TSO/ISPF 7
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Avoid job abend on dataset held by us... JCL & VSAM 6
No new posts Identify Number of Multivolume Dataset All Other Mainframe Topics 5
No new posts Can BPXBATCH update TAPE file COBOL Programming 3
Search our Forums:


Back to Top