View previous topic :: View next topic
|
Author |
Message |
Tanvi Jaiswal
New User
Joined: 04 Apr 2008 Posts: 7 Location: Hyderabad
|
|
|
|
hi,
i am trying to copy the tape dataset records into a sequential file using REPRO. But it is giving me error of 12. Can anyone tell me how should i copy the data of tape file into sequential file. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Without seeing either your code or the error messages you can not expect very much help at all.
Oh, by the way, a tape file IS a sequential file. |
|
Back to top |
|
|
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 218 Location: India
|
|
|
|
Tanvi Jaiswal wrote: |
hi,
i am trying to copy the tape dataset records into a sequential file using REPRO. But it is giving me error of 12. Can anyone tell me how should i copy the data of tape file into sequential file. |
U can copy the Tape dataset records in to a sequentail file.
Use the following sort card.
Code: |
//SORT1 EXEC PGM=SORT
//SORTIN DD DSN=INPUT
//SORTOUT DD DSN=OUTPUT
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
/*
|
U acn also do it by REPRO.Provide ur control Card. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi.
TAPE files are essentially a sequential file. I hope you wanted to copy file from TAPE to DASD. Please clarify.
Quote: |
Can anyone tell me how should i copy the data of tape file into sequential file. |
for this you can check this link. It gives a JCL as well as good explanation on some points..
www.ibmmainframes.com/viewtopic.php?t=23225&highlight=tape+to+dasd |
|
Back to top |
|
|
Tanvi Jaiswal
New User
Joined: 04 Apr 2008 Posts: 7 Location: Hyderabad
|
|
|
|
i am able to do it thru FILEAID but now i am facing a space problem.
i have given 50,50 as primary and secondary memory but still failing for space error. SO i guess there are too many records in tape file.
is there a solution to get exactly what should be the space parameter of output file if such a condition comes. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
If you have access to your TMS (Tape Management Software) you can see the number of blocks written to the tape.
Number of blocks * integer(blocksize / lrecl) = estimated record count
integer (27998 / lrecl) = records per DASD block
records per DASD block / 2 = number of tracks required
number of tracks required / 15 = number of cylinders required |
|
Back to top |
|
|
|