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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am


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