Receive an entry from a queue

The MQReceive() function removes the message from the queue.

The following example shows the removal of message from the queue:
BEGIN WORK;

EXECUTE FUNCTION MQReceive('IDS.DEFAULT.SERVICE', 'IDS.DEFAULT.POLICY');

(expression)  hello queue

1 row(s) retrieved.

COMMIT WORK;