Returns the characteristics of your terminal device
| Language element: |
function
|
| Category: |
general-purpose OpenVMS
|
| OpenVMS specifics: |
All aspects are
host-specific
|
|
GETTERM(characteristic-name)
|
-
characteristic-name
-
is the name of the terminal characteristic to be returned. The argument can be a character variable, character literal enclosed in quotation marks, or another
character expression. If characteristic-name is longer than 200 characters, it is
truncated.
The GETTERM function returns the characteristics of your terminal device from within the SAS System. It can be called from either
the DATA step or an SCL program. This function eliminates the need to use the X command or statement to return your terminal characteristics. The return value is a numeric code, which is the current
setting of a characteristic.
Characteristic values that are Boolean (on or off) are returned as 0 or 1. Characteristic values that have integer values, such as page size,
are returned as the function value.
If an error occurs during the execution of the function, GETTERM returns a negative result. Some
common error return codes include the following:
Terminal Characteristics lists in alphabetic order the characteristics that
can be returned by the GETTERM function.
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.