The runs test is available in the autoreg procedure which does support by-processing. It should go like;
proc autoreg data=myData;
by myByVariable;
model myVariable= / runs;
run;
Note proc autoreg requires licence to SAS/ETS.
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.