Kilowatt Software L.L.C.
Classic Rexx Tutorial
Language Level 4.00 (TRL-2)

Say instruction

The SAY instruction computes the value of its optional expression, and sends the result as a line to the default output stream. Often this will be the program's console. When the expression is absent, the empty string is written.

A simple example of the SAY instruction is:

An improved version of the above is:

In the above example the caption and the computation result were concatenated with an intervening space.

Another example of the SAY instruction is:

In the above example the two magic words were concatenated with an intervening space.

A more elaborate example of the SAY instruction is:

The above example used the PARSE instruction
and the following built-in functions;
  CENTER,
  DATE,
  TIME,
  RIGHT,
  SUBSTR

The expression includes a variety of string concatenation operations.

The SAY instruction is entirely equivalent to the following:

See the LINEOUT built-in function's description for details.


Kilowatt Software L.L.C. -- Classic Rexx Tutorial -- Back to top
Click here if you have any comments or questions regarding this tutorial

Last updated on: 11 Apr 2006