Chapter Contents

Previous

Next
QUEUE_COMPLETE

QUEUE_COMPLETE



Indicate attachment receipt completion.


Syntax
QUEUE_COMPLETE Example

Syntax

CALL QUEUE_COMPLETE(queueId, rc);

Where... Is type... And represents...
queueId N queue identifier
rc N return code

When a message is surfaced by a query, the QUEUE_QUERY CALL routine returns a flag that indicates whether attachments were included with the message. If the query returns the attachment flag set to 1, indicating that attachments were included with the message, QUEUE_COMPLETE must be called at some point to indicate that attachment receipt is complete. If attachments are to be accepted, the QUEUE_ACCEPT calls should be made before the call to QUEUE_COMPLETE. However, the CALL routine must be called at some point whether or not any attachments were actually accepted. Subsequent queries will be prohibited until QUEUE_COMPLETE is called.

If an error or a warning condition is encountered, a non-zero return code is returned in the rc parameter. Use the SYSMSG() function to print the message that is associated with the non-zero rc.


QUEUE_COMPLETE Example

This example uses QUEUE_COMPLETE to indicate that the attachment receipt is complete.

call queue_complete(queueId, rc);


Chapter Contents

Previous

Next

Top of Page

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