This is mydata : data mydata;
input age note;
cards;
15 17.5
35 18
22 16.25
21 14.5
17 18.5
15 16
22 14.5
35 12.5
21 13.25
;
run; and i want to compute note_Q1 and note_Q3 for each age. So I did : %macro compute(age);
%do i=1 %to &age;
proc means data=mydata(where=(age=&i.)) q1 q3;
var note;
class age;
ods output summary=data_&i.;
run;
%end;
%mend;
%compute(35); but i get this warning message : NOTE: There were 0 observations read from the data set WORK.MYDATA.
WHERE age=1;
WARNING: Output 'summary' was not created. Make sure that the output object name, label, or path is spelled correctly. Also,
verify that the appropriate procedure options are used to produce the requested output object. For example, verify that
the NOPRINT option is not used. How can I get only on table with proc means result by age ?
... View more