楼主: LJL107235
2512 2

[问答] SAS数据读入的问题 [推广有奖]

  • 0关注
  • 6粉丝

副教授

86%

还不是VIP/贵宾

-

威望
0
论坛币
914 个
通用积分
255.3133
学术水平
13 点
热心指数
28 点
信用等级
10 点
经验
8716 点
帖子
234
精华
0
在线时间
1754 小时
注册时间
2008-10-20
最后登录
2024-4-20

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
data test;         *Why this programe cannot be executed?;
input year, consumption, GDP;
datalines;
1981 262 480
1982 284 514
1983 311 566
1984 354 668
1985 437 811
1986 485 908
1987 550 1043
1988 693 1355
1989 762 1512
;
run;

实在是看不出有任何的问题,但是运行后LOG的显示
ERROR: General error from the User Interface subsystem.
ERROR: DMS font returned.
45   data test;         *Why this programe cannot be executed?;
46   input year, consumption, GDP;
               -
               22
               76
ERROR 22-322: Syntax error, expecting one of the following: [, {.
ERROR 76-322: Syntax error, statement will be ignored.
47   datalines;
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.TEST may be incomplete.  When this step was stopped there were 0 observations and 0 variables.
WARNING: Data set WORK.TEST was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
      real time           0.03 seconds
      cpu time            0.04 seconds
57   ;

58   run;


而且WORK.test中也没有读入数据


为什么,请知道的指点一下。。。谢谢
二维码

扫码加我 拉你入群

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

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

关键词:数据读入 observations consumption observation incomplete 数据 SAS

沙发
Bridgenc 发表于 2010-12-4 11:11:09 |只看作者 |坛友微信交流群
Try this:
data test;         *Why this programe cannot be executed?;
input year  consumption  GDP;
datalines;
1981 262 480
1982 284 514
1983 311 566
1984 354 668
1985 437 811
1986 485 908
1987 550 1043
1988 693 1355
1989 762 1512
;
run;
已有 1 人评分经验 热心指数 收起 理由
crackman + 20 + 2 我很赞同

总评分: 经验 + 20  热心指数 + 2   查看全部评分

使用道具

藤椅
LJL107235 在职认证  发表于 2010-12-4 11:31:49 |只看作者 |坛友微信交流群
呵呵 太谢谢你了,原来是不能加逗号,呵呵

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-11 17:44