System information
STAT afn The command line can also specify a set of files to be scanned by STAT. The files
that satisfy afn are listed in alphabetical order, with storage requirements
for each file under the heading:
RECS BYTES EXT D:FILENAME.TYP
rrrr bbbk ee d:filename.typ
where rrrr is the number of 128-byte records allocated to the file, bbb is the
number of kilobytes allocated to the file (bbb=rrrr*128/1024), ee is the number of
16K extensions (ee=bbb/16), d is the drive name containing the file (A ... P),
filename is the eight-character primary filename, and typ is the three-character
filetype. After listing the individual files, the storage usage is summarized.
STAT d:afn The drive name can be given ahead of the afn. The specified drive is first
selected, and the form STAT afn is executed.
STAT d:=R/O This form sets the drive given by d to Read-Only, remaining in effect until
the next warm or cold start takes place. When a disk is Read-Only, the message
BDOS ERR ON d: Read-Only
appears if there is an attempt to write to the Read-Only disk. CP/M waits until a
key is pressed before performing an automatic warm start, at which time the disk
becomes R/W.
The STAT command allows you to control the physical-to-logical device assignment. See the
IOBYTE function described in Sections 5 and 6. There are four logical peripheral devices that
are, at any particular instant, each assigned one of several physical peripheral devices. The
following is a list of the four logical devices:
- CON: is the system console device, used by CCP for communication with the
operator.
- RDR: is the paper tape reader device.
- PUN: is the paper tape punch device.
- LST: is the output list device.
1.6 Transient Commands CP/M Operating System Manual
1-16