经管之家送您一份
应届毕业生专属福利!
求职就业群
感谢您参与论坛问题回答
经管之家送您两个论坛币!
+2 论坛币
<p>Lucky 2.3 1.9 . 3.0<br/>Spot 4.6 2.5 3.1 .5<br/>Tubs 7.1 . . 3.8<br/>Hop 4.5 3.2 1.9 2.6<br/>Noisy 3.8 1.3 1.8<br/>1.5<br/>Winner 5.7 . . .</p><p>这个数据在记事本或是word里面存为 ccc.DAT文件,</p><p>然后运行下面程序</p><p>* Create a SAS data set named toads;<br/>* Read the data file ToadJump.dat using list input;<br/>DATA toads;<br/>INFILE ’C:\Program Files\SAS\ccc.DAT’;<br/>INPUT ToadName $ Weight Jump1 Jump2 Jump3;<br/>* Print the data to make sure the file was read correctly;<br/>PROC PRINT DATA = toads;<br/>TITLE ’SAS Data Set Toads’;<br/>RUN;</p><p></p><p>结果是:</p><p>NOTE: Copyright (c) 2002-2003 by SAS Institute Inc., Cary, NC, USA.<br/>NOTE: SAS (r) 9.1 (TS1M3)<br/> Licensed to UNIVERSITY OF ILLINOIS AT CHICAGO-CAMPUSWIDE-T/R, Site 0016365003.<br/>NOTE: This session is executing on the XP_PRO platform.</p><p>NOTE: SAS initialization used:<br/> real time 1.15 seconds<br/> cpu time 0.71 seconds</p><p>1 * Create a SAS data set named toads;<br/>2 * Read the data file ToadJump.dat using list input;<br/>3 DATA toads;<br/>4 INFILE 扖:\Program Files\SAS\ccc.dat?<br/> -<br/> 22<br/> 76<br/>ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string.</p><p>ERROR 76-322: Syntax error, statement will be ignored.</p><p>5 INPUT ToadName $ Weight Jump1 Jump2 Jump3;<br/>6 run;</p><p>ERROR: No DATALINES or INFILE statement.<br/>NOTE: The SAS System stopped processing this step because of errors.<br/>WARNING: The data set WORK.TOADS may be incomplete. When this step was stopped there were 0<br/> observations and 5 variables.<br/>NOTE: DATA statement used (Total process time):<br/> real time 0.01 seconds<br/> cpu time 0.01 seconds</p><p>不知道是什么地方出错了 希望大家帮忙看看<br/></p>
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
|