Chapter Contents

Previous

Next
SAS/CONNECT User's Guide

Receive a Message from a Queue

If there is a message on the queue, the event type from the query would be set to DELIVERY. The client can now get the message header and the message content from the queue. However, the sender and receiver must choreograph the use of the message type (msgtype) so that the correct number and type of parameters are received.

if (eventtype = "DELIVERY") then do;

   if (msgtype = 42) then do;
      code="";
      num =0;
      action=""; 

      call send(fetchQ, '_recv', rc, 
                code, num, action);
   end;
end;

else if (eventtype = "NO_MESSAGE") then do;
end;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.