so that summaries from different files can be merged into one file. Procedures with a model statement have a labelling possibility, but what is the 9.4.-trick in proc means?
best
oyho
How about using BY processing?
data all_panels;
set panel0_: indsname=_p;
panel = _p;
run;
proc means data=all_panels;
by panel notsorted;
var...;
output out=all_summary;
run;
Have you examined the OUTPUT statement within PROC MEANS?
if you are using a data set option to provide a label for a data set the syntax is
datasetname (label="quoted text")
dataset options have to appear within () and all of them within the same outer pair.
datasetname (keep= var1 var2 var3 rename=(var2=something) where=(var1 in (1 2 3)) label="quoted text" )
Thanks for pointing to the appropriate syntax. Nevertheless, reading the documentation (http://support.sas.com/documentation/cdl/en/ledsoptsref/69751/PDF/default/ledsoptsref.pdf) it seems to me that this is a dead-end. I see no way to enter a 'label' variable into the data set using data set options. That is what I need, and what my stupid data step code provides. Please correct me if I am wrong.
Unless you can point to a better solution, I presume that my stupid code is the simplest alternative.
best
How about using BY processing?
data all_panels;
set panel0_: indsname=_p;
panel = _p;
run;
proc means data=all_panels;
by panel notsorted;
var...;
output out=all_summary;
run;
The trick is to read the manual? Come back with any specific questions, showing test data/required output, what code you have tried etc.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.