Chapter Contents |
Previous |
Next |
QUEUE_SETATT |
Syntax | |
QUEUE_SETATT Example |
Syntax |
CALL QUEUE_SETATT(queueId, rc, atype, ainfo, aname <, atype, ainfo, aname...>); |
Where... | Is type... | And represents... |
---|---|---|
queueId | N | queue identifier |
rc | N | return code |
atype | C | attachment type |
ainfo | C | library name or file specification |
aname | C | member name or filename |
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 atype parameter specifies the attachment type. The ainfo and aname parameters will be set differently depending on the value of atype.
The atype parameter should be one of the following:
When data set attachments are transferred, all data set attributes are cloned by default. These include label, type, password, encryption, index, and sort information.
QUEUE_SETATT Example |
This example defines three attachments to the queue that is defined by queueId.
/*************************************/ /* Attachment one is the data set */ /* SASUSER.EMPLOYEE. */ /*************************************/ type1 = "DATASET"; lib1 = "SASUSER"; mem1 = "EMPLOYEE"; /*************************************/ /* Attachment two is the external */ /* text file that is defined by the */ /* fileref RLINK. */ /*************************************/ type2 = "EXTERNAL_TEXT"; fspec = "FILEREF"; fref = "RLINK"; /*************************************/ /* Attachment three is an external */ /* binary file. */ /*************************************/ type3 = "EXTERNAL_BIN"; fspec3 = "FILENAME"; fname3 = "/tmp/binary.file"; call queue_setatt(queueId, rc, type1, lib1, mem1, type2, fspec, fref, type3, fspec3, fname3);
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.