Chapter Contents

Previous

Next
QUEUE_SETPARM

QUEUE_SETPARM



Define parameters to be sent to a particular queue.


Syntax
QUEUE_SETPARM Example

Syntax

CALL QUEUE_SETPARM(queueId, rc, parm1, <parm2,...,parmn>);

Where... Is type... And represents...
queueId N queue identifier
rc N return code
parm1,...parmn N or C 1 or more numeric or character parameters

QUEUE_SETPARM defines parameters to a particular queue so that they can be sent when the QUEUE_SEND CALL routine is invoked.

The queueId parameter identifies the queue.

If an error occurs, rc is updated and returned as a non-zero value. Use the SYSMSG() function to print the message that is associated with the non-zero rc.

The parm1,...,parmn parameters are the one or more parameters to send to this particular queue. The parameters are not actually sent until the QUEUE_SEND CALL routine is invoked. Parameters may be numeric or character and may appear in any order.


QUEUE_SETPARM Example

This example defines three parameters to be sent to the queue that is identified by queueId. The message is not sent until the QUEUE_SEND CALL routine is invoked.

name = "John Doe";
age = 35;
company = "SAS";
call queue_setparm(queueId, rc, name, age, 
                   company);


Chapter Contents

Previous

Next

Top of Page

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