z/OS TSO/E REXX Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


SAY

z/OS TSO/E REXX Reference
SA32-0972-00

Read syntax diagramSkip visual syntax diagram
>>-SAY-+------------+-;----------------------------------------><
       '-expression-'     

SAY writes a line to the output stream. This typically displays it to the user, but the output destination can depend on the implementation. The result of expression may be of any length. If you omit expression, the null string is written.

If a REXX exec runs in TSO/E foreground, SAY displays the expression on the terminal. The result from the SAY instruction is formatted to the current terminal line width (as defined by the TSO/E TERMINAL command) minus 1 character. In TSO/E background, SAY writes the expression to the output stream, which is SYSTSPRT. In either case, when the length is undefined (LINESIZE() returns 0), SAY uses a default line size of 80.

If an exec runs in a non-TSO/E address space, SAY writes the expression to the output stream as defined by the OUTDD field in the module name table (see Module name table). The system default is SYSTSPRT. The ddname may be changed on an application basis or on a system basis.

Example:
data=100
Say data 'divided by 4 =>' data/4
/* Displays: "100 divided by 4 => 25"  */

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014