Asynchronous Serial Communications Programmer's Reference Manual (32022-90052)
278 Chapter9
Intrinsics Reference (cont)
READ
The maximum length of the message array. If
expectedlength is positive, it specifies the length in
halfwords. If expectedlength is negative, it specifies
the length in bytes. When the record is read, the first
expectedlength characters are input. If the number of
bytes input exceeds this value, the read terminates on
byte count.
Condition Codes
CCE Request granted.
CCG A record with a colon in the first column, signaling the
end-of-data or a hardware end-of-file, was encountered.
CCL Request denied. A physical input/output error occurred.
Further analysis through the FCHECK intrinsic is not
possible.
Additional Discussion
See the discussion of reading ASCII strings from $STDIN into an array
in Accessing Files Programmer’s Guide.