Previous Page | Next Page

WebSphere MQ Call Routines

MQSETPARMS



Creates a data descriptor that describes the actual Base SAS variables along with an associated data mapping. This data descriptor can then be used on a subsequent MQPUT or MQPUT1 call.
Syntax
Arguments
Example

Syntax

CALL MQSETPARMS(hData, hMap, rc, parm1 <,parm2, parm3, ...>);

Arguments

hData

Numeric, output

Returns a Base SAS internal data descriptor handle. The handle that is generated can be used to reference the data when sending a message to a queue.

hMap

Numeric, input

Specifies a Base SAS internal map descriptor handle that is obtained from a previous MQMAP function call. If set to zero, no external defined mapping is assumed and therefore, all data is mapped according to Base SAS internal representations. That is, all numerics are mapped as doubles and all strings are mapped as character data of the current string length.

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, input

Specifies the Base SAS variables to set.


Example

This example sets values of Base SAS variables into a message.

hData=0;
rc=0;
parm1=100;
parm2=9999;
parm3=9999.9999;
parm4="This is a test.";
CALL MQSETPARMS(hData, hMap, rc,
parm1, parm2, parm3, parm4);

Previous Page | Next Page | Top of Page