View previous topic :: View next topic
|
Author |
Message |
sbalajibe
New User
Joined: 15 Aug 2005 Posts: 62
|
|
|
|
How to copy a dataset from TAPE to DASD using JCL |
|
Back to top |
|
|
spanda
New User
Joined: 31 Aug 2005 Posts: 48 Location: U.K.
|
|
|
|
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 |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
Hi,
If it's PDS,then IEBCOPY utility can be used.
COPY INDD = input ddname
OUTDD = output ddname
Regards,
Sridevi. |
|
Back to top |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
Hi,
Above holds good for both PDS and PS.
Regards,
Sridevi. |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
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 |
|
|
|