Hi, I'm a beginner in SAS and have an excercise to read in data and then use the means to print analysis. But I get the error message "Statement is not valid or it is used out of proper order." My data table is [id, kon, lon, atid] 19 K 7150 50
26 K 12300 100
12 K 6400 50
10 K 5650 50
9 K 17600 100
11 K 16200 100
3 K 12600 100
16 K 16900 100
25 K 13700 100
22 K 9900 100
6 K 8900 50
7 K 10700 100
24 K 13800 100
8 K 13100 100
17 K 15400 100
2 K 14100 100
18 K 16100 100
4 K 19700 100
15 K 11500 100 and the code is data ekon;
infile '/folders/myfolders/ekon-win.txt';
input id kon $ lon atid;
run;
proc sort data=ekon; by kon id;
proc print data=ekon;
run;
proc means data=ekon maxdec=0;
var lon atid;
class kon;
title 'Means ekon';
run; SAS complaints about the line "var lon atid", what am I not seeing?
... View more