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

Tape dataset in to sequestial file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Tanvi Jaiswal

New User


Joined: 04 Apr 2008
Posts: 7
Location: Hyderabad

PostPosted: Wed Apr 09, 2008 12:16 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Apr 09, 2008 12:43 pm
Reply with quote

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
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 218
Location: India

PostPosted: Wed Apr 09, 2008 12:44 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Apr 09, 2008 12:46 pm
Reply with quote

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
View user's profile Send private message
Tanvi Jaiswal

New User


Joined: 04 Apr 2008
Posts: 7
Location: Hyderabad

PostPosted: Wed Apr 09, 2008 12:48 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Apr 09, 2008 4:22 pm
Reply with quote

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
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 FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top