Functions and CALL Routines under OpenVMS |
Reads characters from the channel assigned by TTOPEN.
Category: |
Terminal-Access
|
OpenVMS specifics: |
All aspects are host-specific
|
TTREAD(channel,buffer,<size>)
|
-
channel
-
is the channel variable returned from the
TTOPEN function.
-
buffer
-
is the character variable where the returned
characters are stored.
-
size
-
is an optional numeric variable, numeric
literal, or an expression which indicates the maximum number of characters
to read and receives the number of characters read. If you do not specify size, the TTREAD function reads characters up to the size of buffer.
The handling of extra characters is determined by the
BUFFERFULL option specified with the TTOPEN function.
If the TTREAD function executes successfully,
the return value is 0. Otherwise, the return value is the OpenVMS error
code that indicates why it
failed.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.