![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS/CONNECT User's Guide |
The open mode is determined by the way the queue is used. There are four options for open mode:
The open attributes are used to specify characteristics of the queue and are applied when the queue is opened.
queueID = loadclass('sashelp.connect.queue');
/****************************************/
/* Open MyQueue for DELIVERY. */
/****************************************/
deliveryQ = instance(queueID);
call send(deliveryQ, '_open', stationInst,
"MyQueue", "DELIVERY", rc, "DYNTEMP");
/****************************************/
/* Open MyQueue for FETCH. */
/****************************************/
fetchQ = instance(queueID);
call send(fetchQ, '_open', stationInst,
"MyQueue", "FETCH", rc, "POLL");
Note: By default, if you query for a message and there is no message, you must wait until a message is received. If you do not want to wait, use the POLL
attribute to open the queue. ![[cautionend]](../common/images/cautend.gif)
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.