Previous Page | Next Page

Options for Commands, Statements, and Procedures for NLS

RENCODING= Option



Specifies the ASCII-based or EBCDIC-based encoding to use for transcoding data for a SAS/SHARE server session that is using an EBCDICANY or ASCIIANY session encoding.
Valid in: LIBNAME statement for SAS/SHARE only
Category: Data Access
Important: The RENCODING= option in the LIBNAME statement is relevant only if using a SAS/SHARE server that has a session encoding set to EBCDICANY or ASCIIANY to preserve a mixed-encoding computing environment, which was more common before SAS 9.
See Also: LIBNAME statement in SAS/SHARE User's Guide

Syntax
Syntax Description
Details
Background
See Also

Syntax

RENCODING=ASCII-encoding-value | EBCDIC-encoding-value


Syntax Description

ASCII-encoding-value

For a list of valid values for ASCII encodings for UNIX and Windows, see Encoding Values for a SAS Session.

EBCDIC-encoding-value

For a list of valid values for EBCDIC encodings for z/OS, see Encoding Values for a SAS Session.


Details

If you use SAS/SHARE in a mixed-encoding environment (for example, SAS/SHARE client sessions using incompatible encodings such as Latin1 and Latin2), you can set the following options:

For SAS 9 and 9.2, if you are processing data in a SAS/SHARE client/server session from more than one SBCS or DBCS encoding, you are advised to use the UTF8 encoding. For more information about Unicode servers that run the UTF8 session encoding, go to http://rnd.sas.com/sites/i18n/i18ndocs/i18nsupport/Pages/SAS%20Technical%20Papers.aspx and search for SAS 9.1.3 Service Pack 4 in a Unicode Environment and Processing Multilingual Data with the SAS® 9.2 Unicode Server.


Background

In SAS 9 and 9.2, you can maintain multilingual data that contains characters from more than one traditional SBCS or DBCS encoding in a SAS data set by using a UTF8 encoding. To share update access to that data using SAS/SHARE, you must also run the SAS/SHARE server using a session encoding of UTF8. SAS will transcode the data to the client encoding if necessary.

Before SAS 9, if a SAS/SHARE client and a SAS/SHARE server ran on common architectures (for example, the client and server ran on UNIX machines), there was no automatic transcoding of character data. It was possible to build applications that accessed data sets in different EBCDIC or ASCII encodings within a single SAS/SHARE server, or that accessed data sets in mixed different encodings within a single data set. This method was very uncommon and required careful programming to set up transcoding tables from clients that ran in different operating environments.

The following steps describe how you can maintain mixed encoding in SAS 9, if necessary.


See Also

Conceptual Information:

Transcoding for NLS

Statements:

LIBNAME in SAS/SHARE User's Guide

Previous Page | Next Page | Top of Page