On Thu, 30 Nov 2006 16:57:20 -0600, Friske, Michael wrote: > > >-----Original Message----- >From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On >Behalf Of Jan MOEYERSONS > >>Is there a formula for this ? Also Gb to cyl. >>Thanks > >Here is a little REXX exec that does the trick for us. > >/* Rexx */ >ARG N1 >CYL = ((N1*1024*1024) / 849960) >SAY 'THE NUMBER OF CYLINDERS IS' CYL > >For GB to tracks -- > >/* Rexx */ >ARG N1 >TRK = ((N1*1024*1024) / 56664) >SAY 'THE NUMBER OF TRACKS IS' TRK >
I would point out two things about this. First, the numbers that you are using are the raw number of bytes per track/cylinder. You can't actually put that much data on a track or cylinder using normal access methods. Second, the calculation prooduces MiB, not MB. Disk capacities are normally specified in MB, not MiB. The factor should be 1,000,000 not by 1024*1024. These two cause errors in opposite directions, perhaps even canceling each other somewhat. -- Tom Marchant ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html