![]() Chapter Contents |
![]() Previous |
![]() Next |
| GETLATTR |
| Category: | List |
| Syntax | |
| Details | |
| Example | |
| See Also |
Syntax |
| attributes=GETLATTR(list-id<,index>); |
| Details |
If index is omitted, attributes contains one attribute from each row of the following table:
| Default Setting | Alternate Setting | |
|---|---|---|
| ACTIVE | INACTIVE | |
| DELETE | NODELETE | |
| NOFIXEDTYPE | FIXEDTYPE | |
| UPDATE | NOUPDATE | |
| WRITE | NOWRITE | |
For detailed information about these attributes, see SETLATTR.
| Example |
INIT: listid = makelist(1); listattrs = '"' || getlattr(listid) || '"'; put listattrs=; found = index(listattrs,'UPDATE'); put found=; itemattrs = '"' || getlattr(listid,1) || '"'; put itemattrs=; rc = dellist(listid); return;The output of this example is
LISTATTRS=" DELETE UPDATE NOFIXEDTYPE NOFIXEDLENGTH ANYNAMES DUPNAMES NOCHARONLY NONUMONLY COPY NOHONORCASE" FOUND=10; ITEMATTRS=" ACTIVE WRITE NOAUTO NOEDIT DELETE UPDATE NOFIXEDTYPE "
FOUND returns the starting position of the word "UPDATE" in the string of list attributes.
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.