MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to unload VSAM files from Tapes mounted on the mainframe

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Shilpi
Beginner


Joined: 23 Apr 2003
Posts: 8
Topics: 3

PostPosted: Wed Jan 07, 2004 7:41 am    Post subject: How to unload VSAM files from Tapes mounted on the mainframe Reply with quote

Hi,

I need immediate assistance. I have to unload some VSAM files from the tape which is mounted on our mainframe. I have the contents of the tape which I extracted using TAPEMAP. It has given me following information,

DATASET NAME
PSWD REQD
C-DATE
E-DATE
INFO SOURCE
RECFM
LRECL
BLOCK SIZE
BLOCK COUNT
etc...

Can somebody help me??

Thanks,
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Wed Jan 07, 2004 8:22 am    Post subject: Reply with quote

Shilpi,

I don't quite understand your requirement. If your aim is to dump the contents of the vsam file to a seq file then you can use any of the IBM utilities like IEBGENER, IDCAMS ..

But I would recommend SORT utility as it is highly optimized.

Code:

//STEP0100 EXEC PGM=SORT
//SYSOUT   DD SYSOUT=*
//SORTIN   DD DSN=YOUR INPUT VSAM FILE,
//            DISP=SHR
//SORTOUT  DD DSN=YOUR OUTPUT SEQ FILE,
//            DISP=(NEW,CATLG,DELETE),
//            UNIT=SYSDA,
//            SPACE=(CYL,(X,Y),RLSE)
//SYSIN    DD *
   SORT FIELDS=COPY
/*


Hope this helps...

cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Gordon Maxim
Beginner


Joined: 08 Jan 2004
Posts: 1
Topics: 0

PostPosted: Thu Jan 08, 2004 1:29 am    Post subject: Reply with quote

Shilpi is trying to get the VSAM datasets off a tape. They were probably put on the tape with IDCAMS and if so they can be read off the tape and turned back into VSAM datasets using IDCAMS.

I suggest Shilpi asks for a copy of the JCL that was used to write the tape from whoever created it. That should give a pretty clear indication which utility, eg IDCAMS, should be used to restore the contents of the tape. Once that's known, consult the appropriate manual for that utility.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group