A character-set encoding
is a set of characters that have been mapped to numeric values called
code points.
The encoding for a
SAS session is determined by the values of the ENCODING=, LOCALE=,
DBCSTYPE=, and DBCSLANG= system options as follows:
-
If the ENCODING= and LOCALE= system
options are not specified, the default value is ENCODING=. For UNIX,
the default value is
latin1
; for Windows,
the default value is wlatin1; for
z/OS, the default is OPEN_ED-1047.
-
If the ENCODING option is not specified,
the value of Encoding is determined by the value of LOCALE and the
operating system where SAS is running. Also, if LOCALE is not set,
the default LOCALE is en_US.
-
If both LOCALE= and ENCODING= are
specified, the session encoding is the value that is specified by
the ENCODING= option.
-
If LOCALE= is specified and ENCODING=
is not specified, SAS infers the appropriate encoding value from the
LOCALE= value.
-
If the DBCS option is set, the
values for the DBCSLANG= and DBCSTYPE= system options determine the
ENCODING= and LOCALE= values.