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

Usage

3

The MQRead() function returns a 3message from the WMQ queue specified by service_name, 3using the quality of service policy defined in policy_name. 3This function does not remove the message from the queue associated 3with service_name. If correl_id is 3specified, then the first message with a matching correlation ID 3is returned. If correl_id is not specified, 3then the message at the head of the queue is returned. The result 3of the function is a string of type LVARCHAR. If no messages are 3returned, this function returns NULL. This function only reads committed 3messages.

3

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

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