|
|
5#

楼主 |
发表于 2009-8-4 15:50:22
|
只看该作者
Re: 求助有关SAS提取数据进行运算的问题。
15 data bb;
16 if _n_ = 1 then do;
NOTE: SCL source line.
17 declare hash t(dataset:'aa1');
-------
180
NOTE: SCL source line.
18 t.definekey('date');
-
22
ERROR: Invalid variable specification, t.definekey.
Variable names of the form X.X must be either FIRST.X or LAST.X.
NOTE: SCL source line.
19 t.definedata('c');
-
22
ERROR: Invalid variable specification, t.definedata.
Variable names of the form X.X must be either FIRST.X or LAST.X.
NOTE: SCL source line.
20 t.definedone();
-
22
76
ERROR: Invalid variable specification, t.definedone.
Variable names of the form X.X must be either FIRST.X or LAST.X.
ERROR 180-322: Statement is not valid or it is used out of proper order.
ERROR 22-322: Syntax error, expecting one of the following: +, =.
ERROR 76-322: Syntax error, statement will be ignored.
21 end;
22 set aa(rename=(c=c1));
NOTE: SCL source line.
23 rc=t.find(key:date);
-
388
76
ERROR: Invalid variable specification, t.find.
Variable names of the form X.X must be either FIRST.X or LAST.X.
ERROR 388-185: Expecting an arithmetic operator.
ERROR 76-322: Syntax error, statement will be ignored.
24 if rc=0 then do;
25 g=c;
26 h=c1-g;
27 output;
28 end;
29 run;
NOTE: Character values have been converted to numeric values at the places given by:
(Line):(Column).
18:13 19:14
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.BB may be incomplete. When this step was stopped there were 0
observations and 12 variables.
NOTE: DATA statement used:
real time 0.12 seconds
cpu time 0.06 seconds |
|