System information
The current logical-to-physical device assignment is changed by typing a STAT command of the
form:
STAT ld1=pd1,ld2=pd2,...,ldn=pdn
where ld1 through ldn are logical device names and pd1 through pdn are compatible physical
device names. For example, ld1 and pd1 appear on the same line in the VAL: command shown
above. The following example shows valid STAT commands that change the current
logical-to-physical device assignments:
STAT CON:=CRT:
STAT PUN:=TTY:,LST:=LPT:,RDR:=TTY
The command form,
STAT d:filename.typ $S
where d: is an optional drive name and filename.typ is an unambiguous or ambiguous filename,
produces the following output display format:
Size Recs Bytes Ext Acc
48 48 6K 1 R/O A:ED.COM
55 55 12K I R/O (A:PIP.COM)
65536 128 16K 2 R/W A:X.DAT
where the $S parameter causes the Size field to be displayed. Without the $S, the Size field is
skipped, but the remaining fields are displayed. The Size field lists the virtual file size in records,
while the Recs field sums the number of virtual records in each extent. For files constructed
sequentially, the Size and Recs fields are identical. The Bytes field lists the actual number of
bytes allocated to the corresponding file. The minimum allocation unit is determined at
configuration time; thus, the number of bytes corresponds to the record count plus the remaining
unused space in the last allocated block for sequential files. Random access files are given data
areas only when written, so the Bytes field contains the only accurate allocation figure. In the
case of random access, the Size field gives the logical end-of-file record position and the Recs
field counts the logical records of each extent. Each of these extents, however, can contain
unallocated holes even though they are added into the record count.
1.6 Transient Commands CP/M Operating System Manual
1-19