RPGspRcvMsg Function
Receives a program message from a message queue.
Syntax
RPGspRcvMsg(program message queue)
Part | Description |
program message queue | Required. Character expression representing the program message queue from which to receive a message. |
Remarks
The function is used to receive a message from a program message queue. The received message is marked as "old", so repeated calls to the function will receive the next message in the queue. The function returns an empty string if there are no messages in the specified queue.
Example
The following example demonstrates the use of RPGspRcvMsg to receive every message from a message queue contained in SDS_PROC. Each message is output to the browser, followed by a line break using RPGspOut.
See Also
Profound
Logic Software, Inc.
www.ProfoundLogic.com
(937) 439-7925