HP3000-L Archives

April 1999, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Michael D. Hensley" <[log in to unmask]>
Reply To:
Date:
Fri, 30 Apr 1999 13:07:30 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
> "Is there a calculation I can use to determine the maximum number of
> records a VA type file can contain, therefore enabling me to only report
> this file when it is approaching that limit?"

Depends on the length of each record.  If the flimit is 1000, and the
(maximum) record size is -100 (100 bytes), then the maximum size of the file
is 1000*100, or 100,000 bytes.  This is room for a thousand 100-byte records,
ten-thousand 10-byte records, one-hundred-thousand 1-byte records, or an
indeterminate number of records of assorted sizes.

VA files are similar to the kinds of files on more primitive operating
systems like DOS and UNIX (which don't have structured files); to determine
how full a DOS or UNIX file is, you have to read the file from the beginning
and count the bytes.

Hope this helps!

---
Michael D. Hensley       | mailto:[log in to unmask]
Allegro Consultants Inc. | Visit scenic http://www.allegro.com
408/252-2330             | "Support Bill of Rights Enforcement"

ATOM RSS1 RSS2