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

JES2/3, JCL, utilities.

Topic author
Kotak
Registered Member
Posts: 20
Joined: Mon Nov 04, 2013 11:36 pm
Has thanked: 5 times

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

Postby Kotak » Fri Jun 30, 2017 4:55 pm

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: 544
Joined: Wed Apr 23, 2014 8:45 pm
Been thanked: 11 times

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

Postby nicc » Fri Jun 30, 2017 6:04 pm

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

Online
User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1275
Joined: Fri Jun 28, 2013 1:22 am
Location: East Dubuque Illinois
Has thanked: 2 times
Been thanked: 90 times

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

Postby Robert Sample » Fri Jun 30, 2017 6:17 pm

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.




Topic author
Kotak
Registered Member
Posts: 20
Joined: Mon Nov 04, 2013 11:36 pm
Has thanked: 5 times

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

Postby Kotak » Mon Jul 03, 2017 5:05 pm

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: 544
Joined: Wed Apr 23, 2014 8:45 pm
Been thanked: 11 times

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

Postby nicc » Mon Jul 03, 2017 5:32 pm

No - the number of bytes in a 3390 track/cylinder is the same whatever, if you read the card.


Regards
Nic

Online
User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1275
Joined: Fri Jun 28, 2013 1:22 am
Location: East Dubuque Illinois
Has thanked: 2 times
Been thanked: 90 times

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

Postby Robert Sample » Mon Jul 03, 2017 6:05 pm

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.




Return to “JCL - Job Control Language.”

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests