楼主: saximi
2785 6

[问答] 朱世武的第二版《SAS编程技术教程》上的例子运行报错求教 [推广有奖]

  • 0关注
  • 0粉丝

高中生

90%

还不是VIP/贵宾

-

威望
0
论坛币
420 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
6511 点
帖子
29
精华
0
在线时间
16 小时
注册时间
2012-11-15
最后登录
2016-6-13

楼主
saximi 发表于 2015-5-27 23:02:51 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
朱世武的第二版《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.

二维码

扫码加我 拉你入群

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

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

关键词:SAS编程技术教程 编程技术教程 SAS编程 编程技术 运行报错 additional 编程技术 another require 提示信息

沙发
2010517155lpq 学生认证  发表于 2015-5-27 23:13:21

藤椅
waterhorse 发表于 2015-5-28 00:54:30
LEARN IT NOW>

板凳
saximi 发表于 2015-5-28 21:12:07
有知道的朋友么,烦请赐教,感谢!

报纸
402play 发表于 2015-5-29 07:41:35
数据文件呢。

地板
saximi 发表于 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给输出啊,说明文件是存在的吧

7
zy3137041217 发表于 2015-9-19 17:06:49
请问是为什么呢?为什么说这个文件是另一个主机上的格式?不都是SAS读吗

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

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