全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
5713 6
2010-03-27
这是错误报告
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;

高手解答下!谢谢~
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2010-3-27 20:04:18
不是语法问题而是数据问题吧
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-3-27 20:09:16
2# viterbi
呵呵,我感觉也可能原文件数据问题。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-3-28 09:56:14
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.

Transcoding for NLS
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.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-3-28 14:27:49
4# bobguy
thank you very much,though it's difficult for me to understand it entirely,i know the reason why it stops.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-3-30 16:27:53
语句没有错啊....
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群