data Porto;
input apple lemon orange;
datalines;
1 2 3
2 3 4
3 4 5
1 5 5
3 0 0
6 0 0
7 0 0
run;
PROC SQL;
create table result as
SELECT DISTINCT count(*) into :total
FROM Porto;
QUIT;
proc print data=result;
run;
if I skip the line "create table result as" Is the code not gonna to save any output? is it just gonna showing in the log whatever is identified?
what does count(*) into :total means? is it just total number of rows in table Porto? what is :total? this is looking very strange I tried the code and the output is very strange too...
