DISPLAY (to stdout)
The DISPLAY
instruction displays text
in line mode to the standard output channel.
Syntax
DISPLAY expression
- expression is any expression supported by the language.
Usage
The DISPLAY
instruction
can be used to print information to the standard output channel
(stdout) of the terminal the program is attached to.
The expression is typically a list of string constants and program variables separated by the comma concatenation operator.
Before displaying to the standard output channel, the expression is converted to a character string. The values contained in variables are formatted depending on the data types and environment settings such as DBDATE and DBMONEY.
Example
MAIN
DISPLAY "Today's date is: ", TODAY
END MAIN