SCL Fundamentals |
In SCL, the rules for names are
Librefs and filerefs can have a maximum length of 8 characters. Other names -- including names of SCL variables, arrays, SCL lists, SAS tables, views, indexes, catalogs, catalog entries, macros, and macro variables -- can be 32 characters long.
The first character must be a letter (A, B, C, . . . , Z) or an underscore (_). Subsequent characters can be letters, numeric digits (0, 1, . . . , 9), or underscores.
Names are stored in the case in which they are entered, which can be lower case, mixed case, or upper case.
SCL honors the names that are reserved by SAS software for automatic variables, lists of variables, SAS tables, and librefs. Thus, you cannot use these names in your SCL programs.
When creating variables, do not use the names of special SAS automatic variables (for example, _N_ and _ERROR_) nor the names of lists of variables (for example, _CHARACTER_, _NUMERIC_, and _ALL_).
Just as SCL recognizes keywords from position and context, it also recognizes names in the same way. If SCL sees a word that meets the requirements for a user-supplied SAS name and that is not used in a syntax that defines it as anything else, it interprets the word as a variable name.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.