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

How to calculate the Space parameter for VSAm


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

New User


Joined: 02 Jul 2006
Posts: 12

PostPosted: Sat Aug 25, 2007 11:16 am
Reply with quote

Hi,

can anyone explain how to calculate the Space parameter for both VSAm and Non Vsam dataset.

Thanks
venkat
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sat Aug 25, 2007 11:56 am
Reply with quote

What are the record attributes and lengths
Back to top
View user's profile Send private message
venkatraman

New User


Joined: 02 Jul 2006
Posts: 12

PostPosted: Sat Aug 25, 2007 3:36 pm
Reply with quote

The RECFm is VB and the record length is 2004 for non vsam dataset
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sat Aug 25, 2007 4:14 pm
Reply with quote

VB records are not a "fixed" calculation as by the nature of its attributes the records do vary in length.

Taking 2004 as the maximum record length, and using a BLKSIZE of 27998 which is the optimum for 3390 DASD, you will get

27998 / 2004 = 13.971 records per DASD block = 13 complete records.
Obviously if some of the records are shorter than 2004 then there will be a few more records in the block(s)

2 blocks per track = 26 records per track.

15 tracks per cylinder = 390 records per cylinder.

So if you have 10,000 records

You will require 10000 / 390 = 25.64 ..... 26 cylinders

So for 10,000 records I would code SPACE=(CYL,(30,5),RLSE)
Back to top
View user's profile Send private message
venkatraman

New User


Joined: 02 Jul 2006
Posts: 12

PostPosted: Sat Aug 25, 2007 4:37 pm
Reply with quote

Thank you[/img]
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
No new posts how to calculate SUM for VB file usin... JCL & VSAM 1
Search our Forums:

Back to Top