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.
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.
When using the TUI mode (FGLGUI=0), a DISPLAY
to stdout switches the program to
LINE MODE
, which impacts subsequent instructions such as the RUN
command. For more details about the terminal mode, see IN LINE MODE and IN FORM MODE .
Example
MAIN
DISPLAY "Today's date is: ", TODAY
END MAIN