“data sophie.temperat;
input date$ name$ temperature;
datalines;
23Feb2020 MF 36.4
23Feb2020 XX 36.8
24Feb2020 MF 36.3
24Feb2020 XX 36.9
25Feb2020 MF 36.3;
proc sort data=sophie.temperat; by name temperature;
run;
proc print; title 'lowest and highest temperature'; run;”
LOG 如下:
“168 data sophie.temperat;
169 input date$ name$ temperature;
170 datalines;
NOTE: The data set SOPHIE.TEMPERAT has 4 observations and 3 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.03 seconds
175 25Feb2020 MF 36.3;
--
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
176 proc sort data=sophie.temperat; by name temperature;
177 run;
NOTE: There were 4 observations read from the data set SOPHIE.TEMPERAT.
NOTE: The data set SOPHIE.TEMPERAT has 4 observations and 3 variables.
NOTE: PROCEDURE SORT used (Total process time):
real time 0.00 seconds
cpu time 0.03 seconds
178 proc print; title 'lowest and highest temperature'; run;
NOTE: There were 4 observations read from the data set SOPHIE.TEMPERAT.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds“
Result view窗口如下:
代码中红色的一行没有显示出来,对应的错误在log中是标红的部分,不知道问题出在哪里,请大神们指点!