MQGETPARMS

Retrieves values of Base SAS variables from a previous WebSphere MQ message that was received by an MQGET call.

Syntax

CALL MQGETPARMS(hMap, rc, parm1,parm2, parm3, ...>);

Required Arguments

hMap
Numeric, input
Specifies a handle to a Base SAS internal map descriptor that is obtained from a previous MQMAP function call.
rc
Numeric, output
Provides the Base SAS return code from this function. If an error occurs, then the return code is nonzero. You can use the Base SAS function SYSMSG() to obtain a textual description of the return code.
parms
Numeric or character, output
Returns the Base SAS variables.

Details

This message is available until the next MQGET call is performed.
Note: Initialize variables appropriately to guarantee that truncation does not occur.

Example

This example gets values of Base SAS variables from a received message.
length parm1 parm2 parm3;
length parm4 $ 200;
rc=0;
CALL MQGETPARMS(hMap, rc, parm1, parm2, parm3,
parm4);