<?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: Display program output of bin packing example in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Display-program-output-of-bin-packing-example/m-p/477081#M286179</link>
    <description>&lt;P&gt;The PROC SORT step merely sorts the created data. You can use a PRINT Statement in PROC OPTMODEL to print the optimal solution like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;print bin size;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, this is the exact same data as stored in the data set "Dvr", which contains the solution generated.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jul 2018 13:56:39 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-07-11T13:56:39Z</dc:date>
    <item>
      <title>Display program output of bin packing example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-program-output-of-bin-packing-example/m-p/477074#M286178</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS and tried to set up a bin packing program based on the example from the user's guide (&lt;A href="http://support.sas.com/documentation/cdl/en/ormpug/67517/HTML/default/viewer.htm#ormpug_decomp_examples06.htm" target="_self"&gt;link&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The program runs without errors, however, the optimal solution is not printed/displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that this piece of code is sorting the results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;sort&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=dvd;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; bin;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if a print statement is necessary, it is not stated in the example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 13:46:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-program-output-of-bin-packing-example/m-p/477074#M286178</guid>
      <dc:creator>Hendrik</dc:creator>
      <dc:date>2018-07-11T13:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Display program output of bin packing example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-program-output-of-bin-packing-example/m-p/477081#M286179</link>
      <description>&lt;P&gt;The PROC SORT step merely sorts the created data. You can use a PRINT Statement in PROC OPTMODEL to print the optimal solution like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;print bin size;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, this is the exact same data as stored in the data set "Dvr", which contains the solution generated.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 13:56:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-program-output-of-bin-packing-example/m-p/477081#M286179</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-11T13:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Display program output of bin packing example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-program-output-of-bin-packing-example/m-p/477091#M286180</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, this works, but is possible to print it in the format of the example as well (see below)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 318px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21714iFFEFDCF5EF5D4811/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 14:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-program-output-of-bin-packing-example/m-p/477091#M286180</guid>
      <dc:creator>Hendrik</dc:creator>
      <dc:date>2018-07-11T14:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Display program output of bin packing example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-program-output-of-bin-packing-example/m-p/477098#M286181</link>
      <description>&lt;P&gt;Yes, you can print the results from the created data by adding the step&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=dvd noobs;
   by bin;
   sum size;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;after the PROC SORT Step.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 14:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-program-output-of-bin-packing-example/m-p/477098#M286181</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-11T14:18:31Z</dc:date>
    </item>
  </channel>
</rss>

