Command reference / msg
ADDRPYLE
Add Reply List Entry
Adds an automatic inquiry-message response for jobs using INQMSGRPY(*SYSRPYL). Entries are checked by sequence number and can match on both the message ID and its replacement data.
Allowed environments: *ALL.
Positional parameters: 5.
Parameters
SEQNBR
Sequence number
Assign a unique sequence number from 1 through 9999. IBM i tests entries in ascending order and uses the first match.
MSGID
Message identifier
Identify the inquiry message by its seven-character message ID or by a generic ID. Immediate messages have no ID to compare.
Suggested / special values:
*ANY
*ANY- This reply list entry matches any message identifier. Unless comparison data is specified for this reply list entry, all reply list entries with a sequence number greater than this one are ignored.
message-identifier- Enter a message identifier that is compared with the message identifier of an inquiry message.
CMPDTA
Comparison data
Enter up to 28 characters to match against the message replacement data. The optional start position defaults to 1. A start position requires comparison data.
Suggested / special values:
*NONE
*NONE (comparison data)- Leave comparison data unspecified. If the inquiry message has the specified identifier, the action specified by this reply list entry is taken.
'comparison-data'- Enter a character string of no more than 28 characters (enclosed in apostrophes if blanks or other special characters are included).
*NONE (message data start position)- Leave starting position value unspecified. If comparison data is specified for element 1 of this parameter, the default start value is 1.
message-data-start- Enter the character position in the message's replacement text (maximum value is 999) where the comparison data will start being compared to the replacement text. A start value is not valid without a specification of comparison data.
Elements in order
Comparison data
Comparison data
Message data start position
Message data start position
RPY
Reply
Choose the reply to send when this entry matches, or require a reply from the recipient.
Suggested / special values:
*DFT, *RQD
*DFT- The default reply to the inquiry message is sent. If no default reply is specified in the message description of the inquiry message, the system default reply, *N, is used.
*RQD- The inquiry message requires an explicit reply. If the message queue to which the inquiry is sent is in break mode, the message interrupts and is displayed.
'message-reply'- Enter a character string of no more than 32 characters, enclosed in apostrophes (if blanks or other special characters are included) that is sent as a reply to the inquiry message.
DUMP
Dump
Choose whether to dump the sending job before its program regains control. This choice is independent of RPY.
Allowed values:
*YES, *NO
*NO- Skip the job dump.
*YES- Dump the job before resuming the sending program.
Examples
ADDRPYLE SEQNBR(10) MSGID(RPG1241) RPY(G)
Automatically replies G to RPG1241 inquiries that match this entry.
ADDRPYLE SEQNBR(25) MSGID(RPG1200) RPY(*DFT) DUMP(*YES)
Automatically sends the default reply to RPG12xx inquiries and dumps the sending job. An earlier matching entry takes precedence.
ADDRPYLE SEQNBR(30) MSGID(RPG0000) RPY(D) DUMP(*YES)
Replies D and dumps the job for RPG inquiries that reach this generic entry.
ADDRPYLE SEQNBR(40) MSGID(CPA5316) CMPDTA('QPSPLPRT QSYS QSYSPRT') RPY(*RQD)
Requires a manual reply for CPA5316 when the replacement data identifies QSYS/QPSPLPRT and device QSYSPRT. Spaces in the comparison data matter.
ADDRPYLE SEQNBR(9999) MSGID(*ANY) RPY(*RQD) DUMP(*YES)
Requires a manual reply and requests a dump for any message that reaches the last entry.
ADDRPYLE SEQNBR(5) MSGID(CPA5316) CMPDTA(QSYSPRT 21) RPY(I) DUMP(*NO)
Compares the device name at position 21 of CPA5316 replacement data. A match on QSYSPRT sends I without a job dump.
Generated from os/cl/catalog/ADDRPYLE.json and os/cl/help/ADDRPYLE.json.