The
last
column in
the
STAT
display,
marked
~,
Stands
for
the
access
attributes
of
the
file.
Vector 4
CP/M
defines four attributes, which
can
be
assigned
to
a file individually or in limited combination. These
attributes
are:
RIO:
Read-only
status;
document
cannot
be
changed or deleted
until
reset
by
STAT
command.
R/W: Read-write status; document
can
be changed or
deleted~
SYS:
Changes document
to
system type; does not appear on screen
when directory command is given. Also,
$SYSfiles
cannot
be copied through PIP.
DIR:
Changes document back so
that
it
appears in directory.
A file cannot be both read-only and read-write
at
the
same
time,
nor
can
it
be
both
system
and
directory.
But
it
is
entirely
permissible for a file of
either
access type
to
be
given either of the two directory attributes.
A typical
status
line for the file
SAMPLE.DOC
might look like this:
Recs Bytes
Ext
Acc
2'1
8k 1
R/W
A:
SAMPLE.~
Bytes
remaining on
d:
422k
A>
This would mean
that
the file SAMPLE.DOC, which exists on Drive A, consists
of
27 records of 128 bytes each, is allocated 8 kilobytes
of
the
disk
surface
(even
though
27 times 128 is only 3456).
It
uses one extent,
and
is available
for read and write activity. In addition, the
total
unused space
on
the disk
in
drive A is 422 kilobytes.
Running
An
"Active"
STAT
As
mentioned
above, an "active"
STAT
command is one which changes a file,
disk, or device
in
some way. To
see
a
list
of
all
commands you
can
give,
enter
STAT
VAL:
[RETURNl
The screen
will
display:
Temp RIO
Disk:
d:=R/O
Set
Indicator:
d:filename.ext
$.RIO
$.R/W
$SYS
$DIR
Disk
Status
:
DSK:
d:DSK:
User
Status
:
USR:
IObyte
Assign:
<possible
assigonents)
This
probably
doesn't
help much
right
now, so
here
is a translation of
the
more useful functions.
IX-24
7100-0001
09-01-82 - Rev. A