楼主: kaurala
2196 5

菜鸟求助! [推广有奖]

  • 1关注
  • 2粉丝

硕士生

15%

还不是VIP/贵宾

-

威望
0
论坛币
2958 个
通用积分
0.4818
学术水平
1 点
热心指数
0 点
信用等级
0 点
经验
2483 点
帖子
77
精华
0
在线时间
165 小时
注册时间
2009-11-7
最后登录
2022-3-13

楼主
kaurala 学生认证  发表于 2013-11-7 15:57:14 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
  1. libname mylib 'D:\ResDat';
复制代码
  1. data;
  2. set mylib.stk000001;
  3. run;
复制代码


运行结果只读取了变量,没有读取数据,新手求助!
下面是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
二维码

扫码加我 拉你入群

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

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

关键词:observations observation environment performance truncation additional character resources another require

沙发
zhou.wen 发表于 2013-11-7 18:21:38
编码问题,换支持unicode的sas试试
http://support.sas.com/documenta ... .htm#a000999304.htm
Practice Is The Best Teacher!

藤椅
Imasasor 发表于 2013-11-7 19:30:08
data;
set mylib.stk000001(encoding=euc);
run;

试试
欢迎加入亚太地区第一R&Python数据挖掘群: 251548215;

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

报纸
Imasasor 发表于 2013-11-8 19:58:02
kaurala 发表于 2013-11-7 19:46
还是不行,运行结果只有变量没有数据。那本书里面的同一类型的class数据可以读取,可这个stk不行。我把数 ...
我运行是可以的,不知道你的原因,间接的方法是把数据导出成CSV,再导入成SAS,你试试吧
欢迎加入亚太地区第一R&Python数据挖掘群: 251548215;

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

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-27 15:38