<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to print output of optmodel into a table in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/How-to-print-output-of-optmodel-into-a-table/m-p/570374#M2802</link>
    <description>Awesome! I tried option 2, it worked like a charm!</description>
    <pubDate>Mon, 01 Jul 2019 19:54:44 GMT</pubDate>
    <dc:creator>Anirudh9</dc:creator>
    <dc:date>2019-07-01T19:54:44Z</dc:date>
    <item>
      <title>How to print output of optmodel into a table</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/How-to-print-output-of-optmodel-into-a-table/m-p/570363#M2800</link>
      <description>&lt;P&gt;My code looks like this:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optmodel;

/*rest of my code */

solve;

print z;

print x;

print y;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this I see the results as a report. I want z, x, y as a SAS table instead. z, x, y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;optmodel printlevel=2;
   ods output PrintTable=expt ProblemSummary=exps DerivMethods=exdm 
              SolverOptions=exso SolutionSummary=exss OptStatistics=exos;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it only showed the table for z and &lt;STRONG&gt;not&lt;/STRONG&gt; for x and y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 19:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/How-to-print-output-of-optmodel-into-a-table/m-p/570363#M2800</guid>
      <dc:creator>Anirudh9</dc:creator>
      <dc:date>2019-07-01T19:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to print output of optmodel into a table</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/How-to-print-output-of-optmodel-into-a-table/m-p/570372#M2801</link>
      <description>&lt;P&gt;Here are three ways.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Use only one PRINT statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;print z x y;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Use three PrintTable= options:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PrintTable=expt PrintTable#2=expt2 PrintTable#3=expt3&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Omit the ODS statement and instead use CREATE DATA:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;create data expt from z x y;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jul 2019 19:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/How-to-print-output-of-optmodel-into-a-table/m-p/570372#M2801</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2019-07-01T19:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to print output of optmodel into a table</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/How-to-print-output-of-optmodel-into-a-table/m-p/570374#M2802</link>
      <description>Awesome! I tried option 2, it worked like a charm!</description>
      <pubDate>Mon, 01 Jul 2019 19:54:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/How-to-print-output-of-optmodel-into-a-table/m-p/570374#M2802</guid>
      <dc:creator>Anirudh9</dc:creator>
      <dc:date>2019-07-01T19:54:44Z</dc:date>
    </item>
  </channel>
</rss>

