I can't put the results of this procedure in a SAS database. Can you please help me ? Thank you.
proc glm DATA= &table. plots=none;
class &target.;
model &variable.=&target.;
ods select FitStatistics;
run; QUIT;
https://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html
You didn't specify exactly what you want to save and store in a data set. I'm assuming you mean data set, not database, if you want to load this to a DB somewhere this doesn't answer that directly. The blog post above has instructions on saving any table outputted.
You should also look at the OUTPUT statement on the PROC to see what statistics you can store without having it displayed.
And the OUTSTAT= option on the PROC statement.
@camilleanais_a wrote:
I can't put the results of this procedure in a SAS database. Can you please help me ? Thank you.
proc glm DATA= &table. plots=none;
class &target.;
model &variable.=&target.;
ods select FitStatistics;
run; QUIT;
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 16. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.