View previous topic :: View next topic
|
Author |
Message |
j_rymbei
New User
Joined: 22 Aug 2006 Posts: 17 Location: India Kolkata
|
|
|
|
Hi,
I came across a new concern where I need to copy one month old data
from tape drive. Can anyone give a sample JCL or is there any other
way. I don't have much idea of tape drives and how they work.
Thanks,
JRY |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
hi j_rymbei,
Where exactly you need to copy the tape dataset.... If you wan to copy a dataset from tape to DASD?? Just use simple sort with option=copY in SYSIN and the output dataset is where you wan the dataset.(dasd).
This is what you wan???
~Vamsi |
|
Back to top |
|
|
j_rymbei
New User
Joined: 22 Aug 2006 Posts: 17 Location: India Kolkata
|
|
|
|
exactly...thankx..can you send me any sample JCL |
|
Back to top |
|
|
annujp
New User
Joined: 31 Aug 2005 Posts: 39 Location: St Paul,MN
|
|
|
|
Hi...this mite help
Code: |
//JS020 EXEC PGM=SYNCSORT
//SORTMSG DD SYSOUT=*
//SORTIN DD DISP=SHR,DSN=[b]<<Tape dataset name>>[/b]
//SORTOUT DD DSN=[b]<<Dataset name in DASD>>[/b],
// DISP=(NEW,CATLG,DELETE),
// UNIT=(,20),
// SPACE=(CYL,(10,10),RLSE),
// DCB=(RECFM=FB,LRECL=516,BLKSIZE=0),
//SYSIN DD *
SORT FIELDS=COPY
END
//*
|
U can use this JCL.
Since the dataset is in Tape, the number of records might be large. So its better to calculate the number of records and allocate the number of cylinders in DASD accordingly. Also dont forget to change the LRECL and RECFM. |
|
Back to top |
|
|
|