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

How much space i need to allocate for the file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jagankallis
Warnings : 1

New User


Joined: 28 Jun 2006
Posts: 29
Location: DUISBURG

PostPosted: Tue Jul 25, 2006 10:37 pm
Reply with quote

Dear Members,

I have a doubt in JCL space allocations. Could you please let me know how much space i need to allocate. I have a file generated by my programs with size as 3000bytes Variable length and ther are approx 4 million records. How much space should i allocates to it.

Please let me know the formulate to calcuates it in cylinders, tracks and blocks.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Jul 25, 2006 11:14 pm
Reply with quote

Based on our shop's standards, I come up with:
Code:

//         SPACE=(3000,(3953,790),RLSE),AVGREC=K


based on the calculation:

LRECL * MAX # of RECORDS / 56664 = (# of tracks)
3000 * 4,000,000 / 56664 = 211,775 tracks.

BLKSIZE / LRECL * 2 * (# of tracks) = primary space
27,998 / 3000 * 2 * 211775 = 3952851

So, divide 3952851 by 1000, rounding up, and that's the primary. For our shop, the secondary is given as 20% of the primary.
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 4
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top