Usage Note 15597: How to convert SAS® data set encoding
This note illustrates how to convert the encoding for a SAS data set.
The sample code below (for the Windows operating environment) converts the encoding for an entire SAS library. UTF-8 is used in the example code as the desired encoding type.
libname inlib cvp 'c:\temp';
libname outlib 'c:\' outencoding='UTF-8';
proc copy noclone in=inlib out=outlib;
run;
The sample code below converts the encoding for a single data set.
libname inlib cvp 'c:\temp';
libname outlib 'c:\' outencoding='UTF-8';
proc copy noclone in=inlib out=outlib;
select dataset_name;
run;
Note: The CVP engine is a read-only engine for SAS data files only. If the variable length is already long enough to the destination encoding, the CVP is not necessary to be used. For more information about CVP engine, see the section Avoiding Character Data Truncation By Using the CVP Engine in the SAS® 9.4 National Language Support (NLS): Reference Guide, Fourth Edition.
.
Note: To determine the encoding of your data set, see SAS Note 14290: "How to determine the encoding value for a SAS® data set in SAS®9."
Operating System and Release Information
SAS System | Base SAS | Microsoft Windows XP Professional | 9.1 TS1M3 | |
Microsoft Windows NT Workstation | 9.1 TS1M3 | |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 | |
Linux | 9.1 TS1M3 | |
z/OS | 9.1 TS1M3 | |
64-bit Enabled Solaris | 9.1 TS1M3 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 | |
Linux on Itanium | 9.1 TS1M3 | |
HP-UX IPF | 9.1 TS1M3 | |
64-bit Enabled AIX | 9.1 TS1M3 | |
OpenVMS Alpha | 9.1 TS1M3 | |
64-bit Enabled HP-UX | 9.1 TS1M3 | |
Tru64 UNIX | 9.1 TS1M3 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Usage Note |
Priority: | |
Topic: | System Administration ==> Installation ==> NLS (National Language Support)
|
Date Modified: | 2013-02-22 16:48:51 |
Date Created: | 2005-06-20 15:51:34 |