Asynchronous Serial Communications Programmer's Reference Manual (32022-90052)
242 Chapter9
Intrinsics Reference (cont)
FOPEN
Bit (10:3)—Default file designator
foptions
.
You should select $STDIN (100), $STDINX (101) or
$STDLIST (001) for terminals, $STDLIST (001)for
printers.
=000 The actual and formal file designators
are the same.
=001 The actual file designator is $STDLIST.
=010 The actual file designator is $NEWPASS.
=011 The actual file designator is $OLDPASS.
=100 The actual file designator is $STDIN.
=101 The actual file designator is $STDINX.
=110 The actual file designator is $NULL.
Bits (8:2)—Record format
foption
.
The format in which the records in the file are recorded.
This field is ignored when a file is opened on a terminal,
since records of files on terminals are always of
undefined length. However, if you anticipate the need to
redirect the file to tape or disk, you may want to set
these bits to 00, which specifies “fixed-length”.
=00 Fixed-length records.
=01 Variable-length records.
=10 Undefined-length records.
=11 Spoolfile.
Bit (7:1)—Carriage control
foption
.
Specifies whether or not you will supply a carriage
control directive in the calling sequence of each
FWRITE call that writes records to the file.
=0 No carriage control character expected
(NOCCTL).
=1 Carriage control character expected
(CCTL).
A carriage control character passed through the
controlcode parameter of FWRITE is recognized as
such and acted upon only for files that have carriage
control specified in FOPEN.
A carriage control character sent to a file on which the
control cannot be executed directly (for example, line
spacing characters sent to a file spooled to disk), causes