Information map names,
data item names, and filter names can be stored as natural language
names in the metadata. Natural language names have blank spaces separating
the words in the name or include symbols in the name. To use natural
language names in SAS, you need to do the following:
-
Make sure that the PRESERVE_MAP_NAMES
option is set to YES (the default) if you are using information maps
with natural language names and want them to be accessible to the
Information Maps engine.
For more information about the PRESERVE_MAP_NAMES option,
see Other Options for the Information Maps Engine.
-
Specify the VALIDVARNAME=ANY system option to allow names
that contain any character, including blank spaces or mixed-case letters.
This SAS system option controls the type of SAS variable names that
can be created and processed during a SAS session. For more information
about the VALIDVARNAME= system option, see
SAS System Options: Reference.
-
For SAS variable names and filter
names, specify natural language names (names that contain blank spaces
or symbols) as SAS name literals. For more information about SAS name
literals, see "Rules for Words and Names in the SAS Language" and
"Avoiding Errors When Using Name Literals" in
SAS Language Reference: Concepts.
The following example
uses the Information Maps engine to make an information map with a
natural language name available for use in the PRINT procedure:
libname mymap infomaps ... ;
option validvarname=any;
proc print data=mymap."Results (Yearly)"n (drop="Tax Rate (Yearly)"n);
run;
The VALIDVARNAME=ANY
option allows the variable name in the DROP= data set option to include
blank spaces, as well as the parentheses symbols. The SAS name literal
surrounds the information map name in the PRINT procedure statement
to allow the name
Tax Rate (Yearly)
to remain intact and contain the symbols that are otherwise not
allowed in SAS.
Note: The VALIDVARNAME= option
applies only to variable names and filter names. Results (Yearly)
is a valid information map name because the PRESERVE_MAP_NAMES= option
in the LIBNAME statement for the Information Maps engine defaults
to YES.