Previous Page | Next Page

Options for Commands, Statements, and Procedures for NLS

INENCODING= and OUTENCODING= Options



Overrides and changes the encoding when reading or writing SAS data sets in the SAS library.
Valid in: LIBNAME statement
Category: Data Access

Syntax
Syntax Description
Details
Comparisons
See Also

Syntax

INENCODING=
INENCODING= ANY | ASCIIANY | EBCDICANY | encoding-value
OUTENCODING=
OUTENCODING= ANY | ASCIIANY | EBCDICANY | encoding-value


Syntax Description

ANY

specifies no transcoding between ASCII and EBCDIC encodings.

Note:   ANY is a synonym for binary. Because the data is binary, the actual encoding is irrelevant.  [cautionend]

ASCIIANY

specifies that no transcoding occurs, assuming that the mixed encodings are ASCII encodings.

EBCDICANY

specifies that no transcoding occurs, assuming that the mixed encodings are EBCDIC encodings.

encoding-value

specifies an encoding value. For a list of encoding values, see Encoding Values for a SAS Session.


Details

The INENCODING= option is used to read SAS data sets in the SAS library. The OUTENCODING= option is used to write SAS data sets in the SAS library.

The INENCODING= or the OUTENCODING= value is written to the SAS log when you use the LIST argument.

INENCODING= and OUTENCODING= are most appropriate when using an existing library that contains mixed encodings. To read a library that contains mixed encodings, you can set INENCODING= to ASCIIANY or EBCDICANY. To write a separate data set, you can use OUTENCODING= to specify a specific encoding, which is applied to the data set when it is created.


Comparisons


See Also

Overview: Encoding for NLS

Statements:

LIBNAME in SAS Language Reference: Dictionary

System Options:

ENCODING System Option: OpenVMS, UNIX, Windows, and z/OS

LOCALE System Option

Data Set Options:

ENCODING= Data Set Option

Previous Page | Next Page | Top of Page