Skip to main content

Software > Software Development > IBM REXX Family >

NetRexx

Technical detail

Say instruction

say [expression];

say writes a string to the default output character stream. This typically causes it to be displayed (or spoken, or typed, etc.) to the user.

Example:

  data=100
say data 'divided by 4 =>' data/4
/* would display: "100 divided by 4 => 25" */

The result of evaluating the expression is expected to be a string; if it is not a string, it will be converted to a string. This result string is written from the program via an implementation-defined output stream.

By default, the result string is treated as a 'line' (an implementation-dependent mechanism for indicating line termination is effected after the string is written). If, however, the string ends in the NUL character ('\-' or '\0') then that character is removed and line termination is not indicated.

The result string may be of any length. If no expression is specified, or the expression result is null, then an empty line is written (that is, as though the expression resulted in a null string).

 

 

PreviousTable of contents Next
We're here to help
Easy ways to get the answers you need.
E-mail us

or call us at
877-426-3774
Priority code:
104CBW67