SYSENCODING Automatic Macro Variable

Contains the name of the SAS session encoding.
Type: Automatic macro variable (ready only)

Details

SYSENCODING displays the name with a maximum length of 12 bytes.

Example: Using SYSENCODING to Display the SAS Session Encoding

The following statement displays the encoding for the SAS session:
%put The encoding for this SAS session is: &sysencoding;
When this statement executes, the following comment is written to the SAS log:
The encoding for this SAS session is: wlatin1