Calculate the number of cylinders required for given records of file?

JES2/3, JCL, utilities.
Post Reply
Kotak
Registered Member
Posts: 20
Joined: Mon Nov 04, 2013 11:36 pm

Calculate the number of cylinders required for given records of file?

Post by Kotak »

Hi,

I have a file having 70,000 records. How can I calculate how many cylinders of storage will it take? Any guide on that would help.
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Calculate the number of cylinders required for given records of file?

Post by nicc »

Cylinders are for disk data sets not files.
If you wanto calculate the space required it is, roughly, records * lrecl / approx, bytes per half track / (number of tracks per cylinder * 2).
And all that is found in various places by doing a simple search.

And you really need to get a link to the 3390 reference card.
Regards
Nic
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Calculate the number of cylinders required for given records of file?

Post by Robert Sample »

Saying you want to know the number of cylinders 70,000 records needs is like asking "how high is up?" Unless you provide the record length, the question cannot be answered -- 70,000 records that are 32750 bytes each will take a lot more cylinders than 70,000 records that are 18 bytes each.

Either bookmark this page or download it: https://archive.org/details/bitsavers_i ... n89_689419 so you'll never again have to ask how many cylinders X records need.
Kotak
Registered Member
Posts: 20
Joined: Mon Nov 04, 2013 11:36 pm

Re: Calculate the number of cylinders required for given records of file?

Post by Kotak »

It was LRECL=80 and FB.

Downloaded that file and it talks about geometry. Should we be knowing the geometry of the DASD too while calculating the cylinders??
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Calculate the number of cylinders required for given records of file?

Post by nicc »

No - the number of bytes in a 3390 track/cylinder is the same whatever, if you read the card.
Regards
Nic
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Calculate the number of cylinders required for given records of file?

Post by Robert Sample »

Downloaded that file and it talks about geometry. Should we be knowing the geometry of the DASD too while calculating the cylinders??
Note that the original reference card was published in 1989; over the last 28 years there have been a few changes. Don't worry about the geometry, and use the table WITHOUT keys. Half-track blocking is 27998 bytes, so divide 27998 by 80 (your record length) and discard the fraction. That tells you how many records will fit into half a track. Double it for tracks and multiply by 15 to get cylinders. Divide the result into your number of records and round up (that is, a division result of 6.001 would become 7). That is the number of cylinders needed.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”