Error Conditions
If the specified SIZE (or LRL times REC) would cause
an
existing file
to become smaller than
it
presently is, the error message "File exists
larger" appears.
Sample Use
Suppose
you
are going
to
store personnel information
on
no more
than
250 employees, and each data record will look like this:
Name
(Up
to
25
letters)
Social Security Number
(11
characters)
Job Description
(Up
to
92
characters)
Your records would need
to
be
25
+
11
+
92
= 128 bytes long.
You
could create
an
appropriate file with this command:
CRE
AT
E PERSONNL
IT)n
(
REC
=
250
,LRL
=
128)
(ENTER)
Once created, this pre-allocated file would allow faster writing than
would a dynamically allocated file, since TRSDOS would not have to
stop writing periodically
to
allocate more space (unless you exceed
the pre-allocated amount
by
adding more than 250 employees).
1-53