Message generation

Sending most output messages to the system operator is a simple, straightforward, uncomplicated task. For most messages, it is only necessary to point to the output parameters and text, relying on the system to do the formatting. Use the following macros are provided for this purpose whenever possible.
WTOPC
Edit and send system message

The WTOPC macro (and cooresponding wtopc C function) constructs a message block and provides facilities for converting binary values into EBCDIC, decimal, or hexadecimal, and for editing the message.

GENMSG
Generate message table for WTOPC

The GENMSG macro constructs the information that WTOPC uses to build a message. Multiple GENMSG macros can be assembled together to form message text tables.

DCTMSG
Define GENMSG entry

The DCTMSG data macro defines and labels entry information generated by the GENMSG macro. These labels can be used when coding a subsequent WTOPC macro.

Note: If you are coding in C, do not use the printf function. Use the C language wtopc function.