![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS Catalog: _getAttributes |
| Syntax | |
| _getAttributes List Items | |
| Example |
Syntax |
| CALL SEND (catalog-object-id, '_getAttributes', attributes-list); |
| Argument | Type | Description |
|---|---|---|
| attributes-list | N | returns the identifier of an SCL list that contains the items in _getAttributes List Items. Each item in the list corresponds to a SAS catalog attribute. |
| List item | Type | Description |
|---|---|---|
| ACCESS | C | the user access level to the catalog, either 'WRITE' or 'READ' |
| ENTRIES | N | the number of catalog entries |
| Example |
This example creates a SAS Catalog object, CATOBJ, and initializes it to SASUSER.PROFILE. The _getAttributes method returns the attributes for CATOBJ.
catclass=loadclass('sashelp.fsp.catalog.
class');
catobj=instance(catclass);
call send(catobj, '_setup_', 'sasuser.
profile');
attrlist=makelist();
call send(catobj, '_getAttributes',
attrlist);
If you use PUTLIST to list the contents of ATTRLIST, you see something similar to
( ACCESS='WRITE' ENTRIES=31 )[2965]
In this example, SASUSER.PROFILE contains 31 entries, and the user has write access.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.