Valid in: | LIBNAME statement |
Category: | Data Access |
PROC OPTIONS GROUP= | LIBNAME statement under Windows, UNIX, and Z/OS in the documentation for your operating environment. |
See: | LIBNAME, |
libname expand 'SAS data-library' cvpbytes=5;
The CVP engine is available for input (read) processing only.
For library concatenation with mixed engines that include the CVP engine, only SAS data files are processed. For example, if you execute the COPY procedure, only SAS data files are copied.
libname expand 'SAS data-library' cvpmultiplier=2.5;
The CVP engine is available for input (read) processing only.
For library concatenation with mixed engines that include the CVP engine, only SAS data files are processed. For example, if you execute the COPY procedure, only SAS data files are copied.
libname myfiles 'C:\Documents and Settings\sasdxw\My Documents\myfiles'; data myfiles.wlatin2 (encoding=wlatin2); var1='41'x; var2='8a'x; var3='9c'x; var4='b3'x; ; proc print data=myfiles.wlatin2; run;
The SAS System 1 The CONTENTS Procedure Data Set Name MYFILES.WLATIN2 Observations 1 Member Type DATA Variables 4 Engine V9 Indexes 0 Created Thursday, November 07, 2003 02:02:36 Observation Length 4 Last Modified Thursday, November 07, 2003 02:02:36 Deleted Observations 0 Protection Compressed NO Data Set Type Sorted NO Label Data Representation WINDOWS_32 Encoding wlatin2 Central Europe (Windows) Engine/Host Dependent Information Data Set Page Size 4096 Number of Data Set Pages 1 First Data Page 1 Max Obs per Page 987 Obs in First Data Page 1 Number of Data Set Repairs 0 File Name C:\Documents and Settings\xxxxxx\My Documents\myfiles\wlatin2.sas7bdat Release Created 9.0100A0 Host Created XP_PRO Alphabetic List of Variables and Attributes # Variable Type Len 1 Var1 Char 1 2 Var2 Char 1 3 Var3 Char 1 4 Var4 Char 1
options msglevel=i;
libname myfiles 'SAS data-library';
data myfiles.utf8 (encoding="utf-8");
set myfiles.wlatin2;
run;
The DATA step requests a new data set named MYFILES.UTF8,
and requests that the data be read into the new data set in UTF-8
encoding, which means that the data must be transcoded from Wlatin2
to UTF-8. The request results in errors due to character data truncation
that occurs from the transcoding. The new data set MYFILES.UTF8 is
created but does not contain any data. 1 options msglevel=i; 2 libname myfiles 'C:\Documents and Settings\xxxxxx\My Documents\myfiles'; NOTE: Libref MYFILES was successfully assigned as follows: Engine: V9 Physical Name: C:\Documents and Settings\xxxxxx\My Documents\myfiles 3 data myfiles.utf8 (encoding="utf-8"); 4 set myfiles.wlatin2; 5 run; INFO: Data file MYFILES.UTF8.DATA is in a format native to another host or the file encoding does not match the session encoding. Cross Environment Data Access will be used, which may require additional CPU resources and reduce performance. ERROR: Some character data was lost during transcoding in the data set MYFILES.UTF8. NOTE: The data step has been abnormally terminated. NOTE: The SAS System stopped processing this step because of errors. NOTE: There were 1 observations read from the data set MYFILES.WLATIN2. WARNING: The data set MYFILES.UTF8 may be incomplete. When this step was stopped there were 0 observations and 4 variables.
options msglevel=i; libname myfiles 'SAS data-library'; libname expand cvp 'SAS data-library' cvpbytes=2; data myfiles.utf8 (encoding="utf-8"); set expand.wlatin2; run;
12 options msglevel=i; 13 libname myfiles 'C:\Documents and Settings\xxxxxx\My Documents\myfiles'; NOTE: Directory for library MYFILES contains files of mixed engine types. NOTE: Libref MYFILES was successfully assigned as follows: Engine: V9 Physical Name: C:\Documents and Settings\xxxxxx\My Documents\myfiles 14 libname expand cvp 'C:\Documents and Settings\xxxxxx\My Documents\myfiles' cvpbytes=2; WARNING: Libname EXPAND refers to the same physical library as MYFILES. NOTE: Libref EXPAND was successfully assigned as follows: Engine: CVP Physical Name: C:\Documents and Settings\xxxxxx\My Documents\myfiles 15 data myfiles.utf8 (encoding="utf-8"); 16 set expand.wlatin2; 17 run; INFO: Data file MYFILES.UTF8.DATA is in a format native to another host or the file encoding does not match the session encoding. Cross Environment Data Access will be used, which may require additional CPU resources and reduce performance. NOTE: There were 1 observations read from the data set EXPAND.WLATIN2. NOTE: The data set MYFILES.UTF8 has 1 observations and 4 variables.
The SAS System 1 The CONTENTS Procedure Data Set Name MYFILES.UTF8 Observations 1 Member Type DATA Variables 4 Engine V9 Indexes 0 Created Thursday, November 07, 2003 02:40:34 Observation Length 12 Last Modified Thursday, November 07, 2003 02:40:34 Deleted Observations 0 Protection Compressed NO Data Set Type Sorted NO Label Data Representation WINDOWS_32 Encoding utf-8 Unicode (UTF-8) Engine/Host Dependent Information Data Set Page Size 4096 Number of Data Set Pages 1 First Data Page 1 Max Obs per Page 335 Obs in First Data Page 1 Number of Data Set Repairs 0 File Name C:\Documents and Settings\xxxxxx\My Documents\myfiles\utf8.sas7bdat Release Created 9.0100A0 Host Created XP_PRO Alphabetic List of Variables and Attributes # Variable Type Len 1 Var1 Char 3 2 Var2 Char 3 3 Var3 Char 3 4 Var4 Char 3