Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us