shewoqishuini 发表于 2010-3-27 16:18 
这是错误报告
ERROR: Some character data was lost during transcoding in the dataset ddfc.inf.
NOTE: The data step has been abnormally terminated.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.CP may be incomplete. When this step was stopped there were 0
observations and 8 variables.
WARNING: Data set WORK.CP was not replaced because this step was stopped.
这是我的语句命令
data cp;
set ddfc.inf;
rename coe=scd;
run;
高手解答下!谢谢~
I believe it is incompatible encoding error. The following help from SAS online may help.
Compatible and Incompatible Encodings
|
| Overview to Compatible and Incompatible Encodings |
ASCII is the foundation for most encodings, and is used by most personal computers, minicomputers, and workstations. However, the IBM mainframe uses an EBCDIC encoding. Therefore, ASCII and EBCDIC machines and data are incompatible. Transcoding is necessary if some or all characters in one encoding are different from the characters in the other encoding.
However, to avoid transcoding, you can create a data set and specify an encoding value that SAS will not transcode. For example, if you use the following values in either the ENCODING= data set option, or the INENCODING=, or the OUTENCODING= option in the LIBNAME statement, transcoding is not performed:
- ANY specifies that no transcoding is desired, even between EBCDIC and ASCII encodings.
Note: ANY is a synonym for binary. Because the data is binary, the actual encoding is irrelevant. 
- ASCIIANY enables you to create a data set that is compatible with all ASCII-based encodings.
- EBCDICANY enables you to create a data set that is compatible with all EBCDIC-based encodings.
You might want to create a SAS data set that contains mixed encodings; for example, both Latin1 and Latin2. You do not want the data transcoded for either input or output processing. By default, data is transcoded to the current session encoding.
Data must be transcoded when the SAS file and the SAS session use incompatible encodings; for example, ASCII and EBCDIC.
In some cases, transcoding is not required because the SAS file and the SAS session have compatible encodings.
For a list of the encodings, by operating environment, see
Encoding Values for a SAS Session.