On 1/8/2011 8:55 PM, Robert A. Rosenberg wrote:
That formula seems to assume RECFM=FB. Since the RECFM is VB,
the formula would seem to me to actually be (Number of
records*40) + File-Size. Since the average file size is 33 bytes
not 5000 bytes, that FB formula yields 70MB (which is also what
my version yields).

No. The formula calculates the worst case space needed. There is no mechanism for telling the file size or average record length, short of actually reading the file an extra time. For a sequential file, the space could be approximated from LSTAR and the device type.

Gerhard Postpischil
Bradford, VT

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