NET/MASTER Network Control Language (NCL) Reference Manual
SAY
Core Statements
106126 Tandem Computers Incorporated 2–59
SAY The SAY core statement writes a message to a terminal’s OCS window or to the
execution environment of the process.
SAY [
expression
]
expression
specifies a character string that NCL displays in the execution environment (OCS
window). If omitted, NCL displays a blank line.
Considerations
NCL truncates output from the SAY statement after 2047 characters.
NCL replaces undisplayable characters with a period (.), except the null character
(x’00’), which is displayed as a blank.
Use the SAY core statement carefully; NCL tries to evaluate the expression before
it issues the message. See the second example following and the definition of
expressions in Section 10, “Expressions and Operators.”
See also the WRITE verb in Section 3, “Verbs.”
Examples
The following example writes the message “HI I AM NOT HERE” to the OCS window
or to the current execution environment:
SAY HI I AM "NOT" HERE
The following example gives a compilation error as the expression is not a valid one.
NCL tries to evaluate the expression using “NOT” as a Boolean operator:
SAY HI I AM NOT THERE
The following example writes the message 51:
SAY 1 + 50
The following example writes the message “1 + 50”:
SAY "1 + 50"