BookmarkSubscribeRSS Feed
Lamda
Calcite | Level 5

Hello everyone,,

 

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 REPLY 1
PaigeMiller
Diamond | Level 26

So you give us a very general description of the problem, with no specifics, no code; and all we can do is give a general answer.

 

When you get the SOLUTIONF answer, you could do something like this, assuming you have a macro variable that specifies the dependent variable.

 

data solutionf;
     set solutionf;
     length dependent $ 32.
     dependent = "&dependent";
run;
--
Paige Miller

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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