BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Polina_UH
Obsidian | Level 7

Dear SAS experts,

 

I'm running multiple models in macro and I have to create combined table of results. I added this statement to my macro thinking that I will just simply merge the outputs from different models and then start working on the table.

 

ods output solutionf;

 

The problem is that the name of the dependent variable is in different output modelinfo, so I added this statement to my model

 

ods output modelinfo;
ods output solutionf;

 

I'm trying to figure out how to merge these two for all of the models I'm running in macro such that my table with final results would indicate estimates for each of the dependent variables correctly, but I can't find anything.

 

Or maybe my line of thinking is incorrect and there are other (I assume more optimal) ways to do that? 

 

Thank you in advance! 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Oligolas
Barite | Level 11

Hi,

easy. Use proc sql or dataset merge in a loop or after generation of the datasets.

For more details you'll need to post data and code samples Smiley Wink

________________________

- Cheers -

View solution in original post

1 REPLY 1
Oligolas
Barite | Level 11

Hi,

easy. Use proc sql or dataset merge in a loop or after generation of the datasets.

For more details you'll need to post data and code samples Smiley Wink

________________________

- Cheers -

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 503 views
  • 0 likes
  • 2 in conversation