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
 

 

Copy a Dataset from Tape to DASD

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

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Thu Oct 13, 2005 4:55 pm    Post subject: Copy a Dataset from Tape to DASD
Reply with quote

How to copy a dataset from TAPE to DASD using JCL
Back to top
View user's profile Send private message

spanda

New User


Joined: 31 Aug 2005
Posts: 48
Location: U.K.

PostPosted: Thu Oct 13, 2005 5:46 pm    Post subject: Re: Copy a Dataset from Tape to DASD
Reply with quote

You can use IDCAMS to REPRO a dataset.
Here's a sample JCL.

//REPR1 EXEC PGM=IDCAMS
//INDD DD DSN=MY.TAPE.FILE,DISP=SHR
//OUTDD DD DSN=MY.DISK.FILE,
// DCB=(BLKSIZE=32760,LRECL=32756,RECFM=VB),
// UNIT=(CART,,DEFER),RETPD=90,DISP=(,CATLG,DELETE)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
REPRO INFILE(INDD) OUTFILE(OUTDD)
/*

Hope this helps.
Panda.
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Thu Oct 13, 2005 6:48 pm    Post subject:
Reply with quote

Hi,
If it's PDS,then IEBCOPY utility can be used.
COPY INDD = input ddname
OUTDD = output ddname
Regards,
Sridevi.
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Thu Oct 13, 2005 6:50 pm    Post subject:
Reply with quote

Hi,
Above holds good for both PDS and PS.
Regards,
Sridevi.
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Oct 13, 2005 7:58 pm    Post subject:
Reply with quote

Only a thing: if your file is on tape created as NL or SL and is not visible from your system because you must insert the volume, you must do an analtape to retriev the name of the label of the file that you want to get as input(if you have not the list of previous analtape).

I hope in this suggest.
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 Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am


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