全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2725 6
2015-05-27
朱世武的第二版《SAS编程技术教程》上有一个例子求变量CLPR的5日滑动平均线
data a;
set ResDat.Idx000001;
sum+clpr;
data b;
merge a a(firstobs=6 rename=(sum=sum_1));
ma5=(sum_1-sum)/5;
run;

为何我原样输入后却无法执行,提示信息如下,请教这是怎么回事呢:
1345  data a;
1346  set RESDAT.IDX000001;
NOTE: Data file RESDAT.IDX000001.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
RESDAT.IDX000001. Either   the data contains characters that are not representable in the new encoding
or truncation    occurred during transcoding.
1347  sum + clpr;
ERROR: Some character data was lost during transcoding in the dataset WORK.A. 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.A may be incomplete.  When this step was stopped there
were 0   observations and 21 variables.
WARNING: Data set WORK.A was not replaced because this step was stopped.

二维码

扫码加我 拉你入群

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

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

全部回复
2015-5-27 23:13:21
二维码

扫码加我 拉你入群

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

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

2015-5-28 00:54:30
LEARN IT NOW>
二维码

扫码加我 拉你入群

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

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

2015-5-28 21:12:07
有知道的朋友么,烦请赐教,感谢!
二维码

扫码加我 拉你入群

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

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

2015-5-29 07:41:35
数据文件呢。
二维码

扫码加我 拉你入群

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

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

2015-5-29 23:05:12
402play 发表于 2015-5-29 07:41
数据文件呢。
ERROR: Some character data was lost during transcoding in the dataset WORK.A. Either
the data    contains characters that are not representable in the new encoding or
truncation occurred   during transcoding.

这段错误是说数据文件不存在么?可是我用proc contens 可以把 RESDAT.IDX000001给输出啊,说明文件是存在的吧
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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