My code looks like this:-
proc optmodel;
/*rest of my code */
solve;
print z;
print x;
print y;
When I run this I see the results as a report. I want z, x, y as a SAS table instead. z, x, y
I tried using
optmodel printlevel=2;
ods output PrintTable=expt ProblemSummary=exps DerivMethods=exdm
SolverOptions=exso SolutionSummary=exss OptStatistics=exos;
but it only showed the table for z and not for x and y
Here are three ways.
1. Use only one PRINT statement:
print z x y;
2. Use three PrintTable= options:
PrintTable=expt PrintTable#2=expt2 PrintTable#3=expt3
3. Omit the ODS statement and instead use CREATE DATA:
create data expt from z x y;
Here are three ways.
1. Use only one PRINT statement:
print z x y;
2. Use three PrintTable= options:
PrintTable=expt PrintTable#2=expt2 PrintTable#3=expt3
3. Omit the ODS statement and instead use CREATE DATA:
create data expt from z x y;
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.