Chapter Contents |
Previous |
Next |
_getsec |
Syntax | |
Example |
Syntax |
CALL SEND(queueInst, '_getsec', rc, acl); |
Where... | Is type... | And represents... |
---|---|---|
rc | N | return code |
acl | L | access control list |
The _getsec method allows you to obtain information about the permissions or privileges that are associated with a specific queue.
If an error or warning condition is encountered when retrieving security information, a non-zero return code is returned in the rc parameter. Use SYSMSG() to determine the exact error message.
The acl parameter is an SCL list that is returned from the _getsec method and contains the access control information.
Example |
This example obtains a list of user privileges for a particular queue.
rc = 0; msg = ''; acl = makelist(); call send(queueInst, '_getsec', rc, acl); if (rc NE 0) then do; msg = sysmsg(); put msg; end; else do; put 'User Access Rights:'; n = listlen(acl); i = 1; do while (n > 0); userid = nameitem(acl, i); permission = getitemc(acl, i); put userid '=' permission; n = n - 1; i = i + 1; end; end; rc = dellist(acl);
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.