Chapter Contents |
Previous |
Next |
MAKELIST |
Category: | List |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
list-id=MAKELIST(<n<, visibility>>); |
Type: Numeric or List
Type: Numeric
'G' |
The list is global and can be shared by all applications executing in the same SAS session. A global list is deleted when the SAS session ends. |
'L' |
The list is local to the current SAS application. A local list is deleted when the application ends. (This is the default.) |
Type: Character
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 |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.