i want to run a proc univariate several times for different variables. can i do it inside a loop?
intuitively, this is what i would expect to do
DO sv = 'sv1','sv2','sv3';
proc univariate data=sample0 noprint;
where exchcd=1;
var sv;
by date;
output out=concat('nyse_',sv) pctlpts=30 70 pctlpre=sv;
run;
end;
what is wrong here?
... View more