Previous Page | Next Page

MSMQ Call Routines

MSMQDELETEQUEUE



Deletes a queue from the MQIS in the case of public queues, or from the local computer in the case of private queues.
Syntax
Arguments
Example

Syntax

CALL MSMQDELETEQUEUE(qid, rc);

Arguments

qid

Numeric, input

Specifies the queue identifier that represents the format name of the queue to be deleted.

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 deletes a queue.

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

Previous Page | Next Page | Top of Page