WTO, WTP, and WTL

The WTO command is used to write a message to the operator. The WTP command is used to write a message to the program (WTO ROUTCDE=11). The WTL command is used to write a message to the console log.

Format

Read syntax diagramSkip visual syntax diagramWTOmessageWTPmessageWTLmessage
Call Name DB/DC DBCTL DCCTL DB Batch TM Batch
WTO, WTP, WTL X X X X X

Usage

The message variable name is a REXX variable containing the text that is stored displayed in the appropriate place.

Example

This example shows how to write a simple message stored the REXX variable MSG.
Msg = 'Sample output message.'           /* Build Message             */
Address REXXIMS 'WTO Msg'                /* Tell Operator             */
Address REXXIMS 'WTP Msg'                /* Tell Programmer           */
Address REXXIMS 'WTL Msg'                /* Log It                    */