Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups 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 -> SMS & VSAM
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
References
PostPosted: Wed Apr 09, 2008 12:16 pm    Post subject: Re: Tape dataset in to sequestial file Reply with quote

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 2962
Location: Brussels once more ...

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: 169
Location: At my Desk

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 D.

Senior Member


Joined: 22 Apr 2006
Posts: 1708
Location: Phoenix, AZ

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: 2962
Location: Brussels once more ...

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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 Hours
Page 1 of 1