Chapter Contents |
Previous |
Next |
QUEUE_GETATT |
Syntax | |
QUEUE_GETATT Example |
Syntax |
CALL QUEUE_GETATT(queueId, status, attachId, atype, ainfo, aname, rc <, desc, minorVersion, majorVersion>); |
Where... | Is type... | And represents... |
---|---|---|
queueId | N | queue identifier |
status | N | status of parameter receipt |
attachId | N | attachment identifier |
atype | C | type of attachment |
ainfo | C | library name or file specification |
aname | C | member name or filename |
rc | N | return code |
desc | C | optional user-specified descriptive text |
minorVersion | N | optional minor version |
majorVersion | N | optional major version |
The status parameter will have a value of 1 if this is the last attachment that was included with the message. Otherwise, it will have a value of 0.
The attachId parameter is returned and is the identifier that is used to uniquely identify each specific attachment. It can be used at a later time to indicate what attachments to actually accept.
The atype parameter specifies the attachment type. The ainfo and aname parameters will be set differently based on the attachment type.
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.
If the sender specified an attachment description, it is returned in the desc parameter.
If the sender specified a user-specifiable minor version number, it is returned in the minorVersion parameter.
If the sender specified a user-specifiable major version number, it is returned in the majorVersion parameter.
QUEUE_GETATT Example |
This example obtains attachment information. Notice the use of the optional parameters on the second and third QUEUE_GETATT invocations.
call queue_query(queueId, etype, msgtype, attachFlag, rc); if (etype = "DELIVERY") and (attachFlag = 1) then do; status = 0; attachId = 0; desc="; call queue_getatt(queueId, status, attachId, type, info, mem, rc); /**********************************/ /* more attachment info to obtain */ /**********************************/ if (status = 0) then call queue_getatt(queueId, status, attachId, type, info, mem, rc, desc); /**********************************/ /* more attachment info to obtain */ /**********************************/ if (status = 0) then call queue_getatt(queueId, status, attachId, type, info, mem, rc, desc, minor); end;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.