全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2150 5
2013-11-07
复制代码
复制代码


运行结果只读取了变量,没有读取数据,新手求助!
下面是log窗口的内容:
6    data;
7    set mylib.stk000001;
NOTE: Data file MYLIB.STK000001.DATA is in a format that is native to another host, or the file
      encoding does not match the session encoding. Cross Environment Data Access will be used,
      which might require additional CPU resources and might reduce performance.
WARNING: Some character data was lost during transcoding in the dataset MYLIB.STK000001. Either
         the data contains characters that are not representable in the new encoding or
         truncation occurred during transcoding.
8    run;

ERROR: Some character data was lost during transcoding in the dataset WORK.DATA2. Either the
       data contains characters that are not representable in the new encoding or truncation
       occurred during transcoding.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.DATA2 may be incomplete.  When this step was stopped there were 0
         observations and 56 variables.

stk000001.rar
大小:(135.42 KB)

 马上下载

本附件包括:

  • stk000001.sas7bdat
  • class.sas7bdat

二维码

扫码加我 拉你入群

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

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

全部回复
2013-11-7 18:21:38
编码问题,换支持unicode的sas试试
http://support.sas.com/documenta ... .htm#a000999304.htm
二维码

扫码加我 拉你入群

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

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

2013-11-7 19:30:08
data;
set mylib.stk000001(encoding=euc);
run;

试试
二维码

扫码加我 拉你入群

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

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

2013-11-7 19:46:32
Imasasor 发表于 2013-11-7 19:30
data;
set mylib.stk000001(encoding=euc);
run;
还是不行,运行结果只有变量没有数据。那本书里面的同一类型的class数据可以读取,可这个stk不行。我把数据上传了,大神要是有时间的话帮我试试。谢谢!
二维码

扫码加我 拉你入群

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

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

2013-11-8 19:58:02
kaurala 发表于 2013-11-7 19:46
还是不行,运行结果只有变量没有数据。那本书里面的同一类型的class数据可以读取,可这个stk不行。我把数 ...
我运行是可以的,不知道你的原因,间接的方法是把数据导出成CSV,再导入成SAS,你试试吧
二维码

扫码加我 拉你入群

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

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

2013-11-9 10:02:23
Imasasor 发表于 2013-11-8 19:58
我运行是可以的,不知道你的原因,间接的方法是把数据导出成CSV,再导入成SAS,你试试吧
好的,谢谢,我这里sas9.3中文版导入成功了。
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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