Home | Previous Page | Next Page   MQ DataBlade Module > MQ DataBlade Functions > MQReceive() > 3 3 3

Usage

3

The MQReceive() function returns 3a message from the WMQ location specified by service_name, 3using the quality of service policy policy_name. 3This function removes the message from the queue associated with service_name. 3If correl_id is specified, then the first 3message with a matching correlation identifier is returned. If correl_id is 3not specified, then the message at the head of the queue is returned. 3The result of the function is a string LVARCHAR type. If no messages 3are available to be returned, the function returns NULL.

3

The following table describes how the arguments for the MQReceive() function 3are interpreted. 3

3 333333333333333333333333333
Table 12. MQReceive() argument interpretation
Usage Argument Interpretation
MQReceive() No arguments
MQReceive(arg1) arg1 = service_name
MQReceive(arg1, arg2) 3
arg1 = service_name
3arg2 = policy_name
3
MQReceive(arg1, arg2, arg3) 3
arg1 = service_name
3arg2 = policy_name
3arg3 = correl_id
3
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]