Functions and CALL Routines under OpenVMS |
Writes characters to the channel assigned by TTOPEN.
Category: |
Terminal-Access
|
OpenVMS specifics: |
All aspects are host-specific
|
TTWRITE(channel,buffer,<size>)
|
-
channel
-
is the channel variable returned from the
TTOPEN function.
-
buffer
-
is the character variable, character literal,
or an expression that contains the data to be written.
-
size
-
is an optional numeric variable,
numeric literal, or expression that specifies how many characters to write
from buffer. If you do not specify size, the entire buffer is sent, including any trailing
blanks.
If the TTWRITE function executes successfully,
the return value is 0. Otherwise, the return value is the OpenVMS error
code that indicates why it failed.
The TTWRITE function does not supply any carriage control.
You must insert into the buffer any carriage-control characters that you
want.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.