Examples for SNDRPY
SNDRPY MSGKEY(&KEY) MSGQ(SMITH) RPY(YES)
This command sends a reply of YES to the message whose reference key is specified by &KEY, which was received at message queue SMITH. Because the reply contains only one word, the reply does not have to be enclosed in apostrophes.
The MSGKEY value is set when the message is received from the message queue via RCVMSG. Here is HELP text for the MSGKEY parameter of the RCVMSG command:
Message key (MSGKEY)
Specifies the message reference key of the message that is received.
No message reference key is specified.
The top of the message queue is used. *TOP can be used only when *NEXT is specified for the Message type (MSGTYPE) parameter. It causes the first message on the message queue to be received. For program message queues, this is the message following the last request message that was received, if any.
Specify the name of the CL variable that contains the message reference key of the message to be used by this receive function. The variable must be a character variable having a length of four characters.
Dig Deeper on i5-OS
Related Q&A from Ken Graap
The BRMS Network feature allows a BRMS system to connect to other BRMS systems via a network, and enables a user to consolidate media such as backup ... Continue Reading
The only option to correct damage preventing file journaling is to use the RCLSTG command. Continue Reading
IBM's iSeries Backup and Recovery manual answers many questions related to system backup and disaster recovery. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.