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

Copy a Dataset from Tape to DASD


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top