The general method you can use ODS : see https://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html
example
ods trace on; /* write ODS table names to log */
proc reg data=Sashelp.Cars plots=none;
model Horsepower = EngineSize Weight;
quit;
ods trace off; /* stop writing to log */
ods output FitStatistics=Output; /* the data set name is 'Output' */
proc reg data=Sashelp.Cars plots=none; /* same procedure call */
model Horsepower = EngineSize Weight;
quit;
proc print data=Output noobs;
run;
|