Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Tape dataset in to sequestial file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Tape dataset in to sequestial file
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: 8620
Location: Back in jolly old England

PostPosted: Wed Apr 09, 2008 12:43 pm    Post subject:
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: 215
Location: India

PostPosted: Wed Apr 09, 2008 12:44 pm    Post subject: Re: Tape dataset in to sequestial file
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

Senior Member


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

PostPosted: Wed Apr 09, 2008 12:46 pm    Post subject:
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..

http://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    Post subject:
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: 8620
Location: Back in jolly old England

PostPosted: Wed Apr 09, 2008 4:22 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us