<?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: Compute in Proc Report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Compute-in-Proc-Report/m-p/721113#M223437</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 22:24:46 GMT</pubDate>
    <dc:creator>sasuser_sk</dc:creator>
    <dc:date>2021-02-22T22:24:46Z</dc:date>
    <item>
      <title>Compute in Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compute-in-Proc-Report/m-p/721050#M223402</link>
      <description>&lt;P&gt;I have the code and output below. I would like to remove decimal this code produces in column Blg_Mo. Help would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;compute blg_mo_calc/char;&lt;BR /&gt;blg_mo_calc=put(blg_mo,8.);&lt;BR /&gt;endcomp;&lt;BR /&gt;break after blg_mo / summarize;&lt;BR /&gt;compute after blg_mo;&lt;BR /&gt;blg_mo_calc = 'SubTotal';&lt;BR /&gt;call define (_row_, 'style', 'style=[fontweight=bold background=#B1E599]');&lt;BR /&gt;endcomp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;rbreak after / summarize style=[background=cxf0f0f0 fontweight=bold fontsize=12pt];&lt;BR /&gt;compute after;&lt;BR /&gt;call define ('_c1_', 'style', 'style=[pretext="Grand Total"]');&lt;BR /&gt;endcomp;&lt;BR /&gt;label blg_mo_calc= 'Blg_Mo';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OUTPUT:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sasuser_sk_0-1614026072976.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55053i8A3BE0D0B3FC04DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sasuser_sk_0-1614026072976.png" alt="sasuser_sk_0-1614026072976.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 20:35:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compute-in-Proc-Report/m-p/721050#M223402</guid>
      <dc:creator>sasuser_sk</dc:creator>
      <dc:date>2021-02-22T20:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Compute in Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compute-in-Proc-Report/m-p/721105#M223433</link>
      <description>&lt;P&gt;That is not a "decimal". That is a MISSING value used in the creation of the character value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add:&lt;/P&gt;
&lt;P&gt;Options missing=' ';&lt;/P&gt;
&lt;P&gt;prior to proc report so the missing value is a space.&lt;/P&gt;
&lt;P&gt;Reset afterwards to the default using&lt;/P&gt;
&lt;P&gt;Options missing=' ';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR write a custom format for the column that displays missing as a space instead of 8. in that PUT.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 22:08:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compute-in-Proc-Report/m-p/721105#M223433</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-02-22T22:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Compute in Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Compute-in-Proc-Report/m-p/721113#M223437</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 22:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Compute-in-Proc-Report/m-p/721113#M223437</guid>
      <dc:creator>sasuser_sk</dc:creator>
      <dc:date>2021-02-22T22:24:46Z</dc:date>
    </item>
  </channel>
</rss>

