全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
872 1
2013-10-17
我运行一下代码:
Data exampleInput s $ x y zcardsA   1  2   3B   4  5   6C   7   8   9runproc  print data=examplerun


显示出错:
NOTE: Copyright (c) 1999-2000 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software Release 8.1 (TS1M0)
      Licensed to UNIVERSITY OF CALIFORNIA/BERKELEY CAMPUS, Site 0029107011.
NOTE: This session is executing on the WIN_PRO  platform.



NOTE: SAS initialization used:
      real time           4.12 seconds
      cpu time            1.01 seconds

ERROR: SAS Syntax Editor control is not installed.
1    Data example;
2    Input s $ x y z;
             -
             22
               -
               202
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, /, ;,
              _DATA_, _LAST_, _NULL_.

ERROR 202-322: The option or parameter is not recognized and will be ignored.

3    cards;
4    A   1   2   3
         -
         22
         76
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, /, ;,
              _DATA_, _LAST_, _NULL_.

ERROR 76-322: Syntax error, statement will be ignored.

5    B   4   5   6
6    C   7   8   9
7    run;
8    proc  print  data=example;
9    run;




为什么会出错?

二维码

扫码加我 拉你入群

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

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

全部回复
2013-10-17 20:54:30
少了一个分号。
Data example;
Input s $ x y z;
cards;
A   1  2   3
B   4  5   6
C   7   8   9
;
run;
proc  print ;run;
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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