Previous Page | Next Page

MSMQ Call Routines

MSMQCLOSECURSOR



Closes a given cursor thereby allowing MSMQ to release the associated resources.
Syntax
Arguments
Example

Syntax

CALL MSMQCLOSECURSOR(hCursor, rc);

Arguments

hCursor

Numeric, input

Specifies the handle to a cursor that is used for looking at messages in the queue. The MSMQCREATECURSOR routine is used to create a cursor and obtain its handle.

rc

Numeric, output

Provides the return code from the CALL routine. If an error occurs, then the return code is nonzero. A return code of -1 reflects a SAS internal error. Otherwise, it represents an MSMQ error code. You can use the SAS function SYSMSG() to obtain a textual description of the return code.


Example

This example closes a cursor.

length msg $ 200;
rc=0;
CALL MSMQCLOSECURSOR(hCursor, rc);
if rc ^= 0 then do;
   put 'MSMQCloseCursor: failed';
   msg = sysmsg();
   put msg;
end;
else put 'MSMQCloseCursor: succeeded';

Previous Page | Next Page | Top of Page