Command reference / msg
CHGRPYLE
Change Reply List Entry
Updates an existing system reply list entry identified by its sequence number. The sequence number itself is fixed.
Allowed environments: *ALL.
Positional parameters: 5.
Parameters
SEQNBR
Sequence number
Sets the sequence number of the reply list entry being changed. The message identifier and message data of an inquiry message are matched against reply list entry message identifiers and comparison data in ascending sequence number order. The search ends when a match occurs or the last reply list entry is passed.
1-9999- Enter a sequence number from 1 to 9999. Duplicate sequence numbers are not allowed.
MSGID
Message identifier
Sets the inquiry message identifier for which automatic system action is taken. The message identifier can be specific or generic in scope. Only predefined messages (messages known to the system by a message identifier) can be matched against reply list entries. Immediate messages cannot be used for comparison.
Suggested / special values:
*ANY, *SAME
*SAME- Keep the current message identifier.
*ANY- This reply list entry matches any message identifier. Unless this reply list entry has comparison data specified, any reply list entry with a higher sequence number than this one is ignored.
message-identifier- Enter a message identifier to compare with the message identifier of an inquiry message.
CMPDTA
Comparison data
Sets the comparison data that is used to determine whether this entry matches an inquiry message. This parameter is made up of comparison data and a start value for the message data. Note: Message data for an inquiry message may be specified in the MSGDTA parameter of the Send User Message (SNDUSRMSG) and Send Program Message (SNDPGMMSG) commands for the inquiry message.
Suggested / special values:
*SAME, *NONE
*SAME (comparison data)- Keep the current comparison data.
*NONE- 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).
*SAME (message data start position)- The message data start remains the same.
message-data-start- Enter the starting character position in the message's replacement text (maximum value not to exceed 999) where the comparison data is to be compared with 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
Select how to reply to an inquiry message that matches this reply list entry. The reply specified in this reply list entry is automatically sent by the system without requiring user intervention. The inquiry message does not cause any job to be interrupted or notified when the message arrives at the message queue.
Suggested / special values:
*SAME, *DFT, *RQD
*SAME- Keep the current reply action.
*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 that the inquiry is sent to is in break mode, the message interrupts the job and is shown on the display.
'message-reply'- Enter a character string of no more than 32 characters (enclosed in apostrophes if blanks or other special characters are included), sent as a reply to the inquiry message.
DUMP
Dump
Controls whether the contents of the job that sent the inquiry message are printed (dumped) when the inquiry message matches this reply list entry.
Suggested / special values:
*SAME, *YES, *NO
*SAME- Keep the current dump attribute of the reply list entry.
*NO- Skip the job dump.
*YES- The job is dumped before control returns to the program sending the message.
Examples
CHGRPYLE SEQNBR(20) MSGID(RPG1299)
Changes the message identifier of the reply list entry (sequence number 20) to RPG1299.
CHGRPYLE SEQNBR(25) CMPDTA(MYPROGRAM)
Changes the comparison data of the reply list entry whose sequence number is 25 to MYPROGRAM. This entry only matches inquiry messages whose message data begins with MYPROGRAM.
CHGRPYLE SEQNBR(30) RPY(C)
Changes the reply sent for the reply list entry whose sequence number is 30 to C.
CHGRPYLE SEQNBR(40) DUMP(*YES)
Changes the attribute defined for the DUMP parameter for the reply list entry whose sequence number is 40.
CHGRPYLE SEQNBR(45) MSGID(CPA5300) CMPDTA(*NONE) RPY(*RQD) DUMP(*NO)
Changes some of the attributes of the reply list entry whose sequence number is 45. Whenever a CPA53xx inquiry message is sent by a job that is using the reply list, a manual reply must be issued.
CHGRPYLE SEQNBR(9999) MSGID(CPA3917) RPY(R)
Changes the reply list entry whose sequence number is 9999. Whenever a CPA3917 inquiry message is sent by a job that is using the reply list, an 'R' reply is automatically sent.
Generated from os/cl/catalog/CHGRPYLE.json and os/cl/help/CHGRPYLE.json.