On Tue, 23 Dec 2008 09:47:15 -0800, Ron Hawkins wrote:
>
>What other answer could there possibly be? He did not ask how many MB would
>it use on Windows or *NIX. He did not ask how big is the file after removing
>block gaps.
>
>If you allocate the file using MB notation it will be converted to tracks
>based on 56664 bytes. Ipso facto tracks times 56664 gives you the size in MB
>on an MVS system.
>
It's rarely so simple (and never on MVS).  I just tried:

    //STEP     EXEC  PGM=IEFBR14
    //SYSUT2    DD   DISP=(NEW,CATLG),UNIT=SYSALLDA,
    //  SPACE=(787,7200),DSN=&SYSUID..TEST.SIZE

And got:
                              Data Set Information

 Data Set Name . . . . : user.TEST.SIZE

 General Data                           Current Allocation
  Management class . . : **None**        Allocated tracks  . : 185
  Storage class  . . . : **None**        Allocated extents . : 1
   Volume serial . . . : TSO008
   Device type . . . . : 3390
  Data class . . . . . : **None**       Current Utilization
   Organization  . . . : NONE            Used tracks . . . . : 0
   Record format . . . : ?               Used extents  . . . : 0
   Record length . . . : 0
   Block size  . . . . : 0
   1st extent tracks . : 185
   Secondary blocks  . : 0
   Data set name type  :

   Creation date . . . : 2008/12/23      Referenced date . . : ***None***
   Expiration date . . : ***None***

Now, by my calculation, 787 x 7200 = 5,666,400.  This should
be 100 tracks, not the 185 that appears above.

Your computation gives what deceptive vendors call "unformatted
space".  It's easy to conjecture (though properly we should
ask) that the OP was interested in the size of the data, not
the unformatted disk space occupied by the data set.

-- gil

----------------------------------------------------------------------
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

Reply via email to