Purpose
Sends messages to the log file or, in the batch environment, to the log file and the operator's console.
Syntax
►►─── WRITE ─── to ──┬─ LOG ──────┬───┬── MESSAGE ──┬── message-options ── . ─►◄ └─ OPERator ─┘ └── MSG ─────┘
Expansion of Message-Options
►►────┬─ TEXT ─────┬──────┬────────── message-text ───────────────────────────► │ ├─ IS ─┤ │ └─ = ─┘ └─ CODE ─────┬──────┬────────── message-code ─────────────────────────── ├─ IS ─┤ └─ = ─┘ ►────────────────────────────────────────────────────────────────────────────► ────┬───────────────────────────────────────────────┬─────────────────────── │ ┌──────────────┐ │ └─ PARMS ────┬─────┬─── (─▼── parameter ─┴─ ) ──┘ └─ = ─┘ ►────────────────────────────────────────────────────┬───────────────────────►◄ ────┬────────────────────────────────────────┬──────┘ └─ PREFIX ───┬──────┬─────── prefix ─────┘ ├─ IS ─┤ └─ = ─┘
Parameters
Sends a message to the system log or to the operator's console. OPERATOR can be specified only in the batch environment.
Identifies message to be displayed.
MSG can be used in place of MESSAGE.
Specifies the text of a message to be sent to the system log or, if batch, sent to the console and batch log file.
Message-text specifies either the name of a variable data field containing the message text or the text string itself, enclosed in single quotation marks.
The text string can contain up to 240 displayable characters.
Specifies the message dictionary code of a message to be displayed in an online map's message field or sent to the log file in a batch application.
In a batch application, the message is also sent to the operator, if directed by the destination specified in the dictionary.
Message-code specifies either the name of a variable data field that contains the message code or the 6-digit code itself, expressed as a numeric literal.
Specifies a replacement parameter for each variable field in the stored message identified by message-code.
Up to nine replacement parameters can be specified for a message. Multiple parameters must be specified in the order in which they are numbered and separated by blanks or commas.
Parameter specifies either the name of an EBCDIC or unsigned zoned decimal variable data field that contains the parameter value or the actual parameter value, enclosed in single quotation marks.
The parameter value must contain displayable characters. At run time, each variable data field in a stored message expands or contracts to accommodate the size of its replacement parameter. A replacement parameter can be a maximum of 240 bytes.
Overrides the default prefix of a dialog and a map.
Prefix must either specify an EBCDIC or unsigned zoned decimal variable data field that contains a 2-character prefix or the 2-character prefix itself, enclosed in single quotation marks
Usage
Considerations
|
Copyright © 2014 CA.
All rights reserved.
|
|