SAS Component Language Dictionary |
Category: | List |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
list-id=MAKELIST(<n<, visibility>>); |
contains the identifier of the new list, or 0 if the list could not be created.
is the number of items to place in the list initially. By default, n is 0.
specifies whether the list is global or local:
Details |
MAKELIST creates either an empty list or a list with the number of items specified in n. Each item contains a missing value. Use the list identifier returned by MAKELIST with all other SCL list functions that use the list.
SCL lists can contain numeric items, character items, other list items, or object items. Each item can have a name. Both lists and list items have attributes. See SCL Lists for complete information about using SCL lists.
Example |
Create lists in the local and global environments:
n = 12; /* Make an empty local list. */ list1=makelist(); /* Make a local list with 24 items. */ list2=makelist(2*n); /* Make an empty global list. */ list3=makelist(0,'G');
See Also |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.