|SAS Component Language: Reference
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.
- Names cannot contain blanks.
- 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_).
- Do not use any of the following names as a libref:
LIBRARY only as the libref to point to a SAS data library
containing a FORMATS catalog that was created with PROC FORMAT.
- Do not assign any of the following names to a
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 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.