<?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 Show (+) or (-) in differences in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Show-or-in-differences/m-p/834392#M35867</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating code that will send out an automatic report. This is a daily report and it tracks the changes from day to day. I want to track the difference by a (+) or (-) so whoever reads it knows if the numbers are going up or down.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, here is part of my output:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;As of 19SEP2022, The percentage of beds occupied is 3.1% ( (&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.1%) change from the previous day).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I would like to say (-0.1% change from the previous day). Also how do I get rid of the extra parentheses around the 0.1%?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Please see code below:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;data test;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;set counts11;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;DIF_bullet1 = DIF(prop_new);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;format today_s_date MMDDYY10.;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;Data bullet1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;Set test;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;CALL SYMPUTX('bullet1', put(prop_new,percent10.1));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;CALL SYMPUTX('DIF_bullet1', put(DIF_bullet1, percent10.1));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;KEEP today_s_date prop_new DIF_bullet1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;Run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;OPTIONS EMAILSYS=smtp Emailhost = placeholder.org EMAILPORT=25 EMAILID="placeholder.org";&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;FILENAME Mailbox EMAIL ATTACH=("T:\Placeholder" "T:\Placeholder"); &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;Data _NULL_;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;FILE Mailbox TO=('Placeholder.org')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;CC=('placeholder.org')&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;SUBJECT="Daily Report &amp;amp;today";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;PUT "The &amp;amp;today&amp;nbsp; Report.";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;PUT " "; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;PUT "• As of &amp;amp;today, The percentage of beds occupied is &amp;amp;bullet1. ( &amp;amp;DIF_bullet1. change from the previous day).";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;proc printto;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;RUN;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2022 21:49:59 GMT</pubDate>
    <dc:creator>scolitti1</dc:creator>
    <dc:date>2022-09-20T21:49:59Z</dc:date>
    <item>
      <title>Show (+) or (-) in differences</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Show-or-in-differences/m-p/834392#M35867</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating code that will send out an automatic report. This is a daily report and it tracks the changes from day to day. I want to track the difference by a (+) or (-) so whoever reads it knows if the numbers are going up or down.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, here is part of my output:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;As of 19SEP2022, The percentage of beds occupied is 3.1% ( (&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.1%) change from the previous day).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I would like to say (-0.1% change from the previous day). Also how do I get rid of the extra parentheses around the 0.1%?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Please see code below:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;data test;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;set counts11;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;DIF_bullet1 = DIF(prop_new);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;format today_s_date MMDDYY10.;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;Data bullet1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;Set test;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;CALL SYMPUTX('bullet1', put(prop_new,percent10.1));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;CALL SYMPUTX('DIF_bullet1', put(DIF_bullet1, percent10.1));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;KEEP today_s_date prop_new DIF_bullet1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;Run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;OPTIONS EMAILSYS=smtp Emailhost = placeholder.org EMAILPORT=25 EMAILID="placeholder.org";&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;FILENAME Mailbox EMAIL ATTACH=("T:\Placeholder" "T:\Placeholder"); &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;Data _NULL_;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;FILE Mailbox TO=('Placeholder.org')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;CC=('placeholder.org')&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;SUBJECT="Daily Report &amp;amp;today";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;PUT "The &amp;amp;today&amp;nbsp; Report.";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;PUT " "; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;PUT "• As of &amp;amp;today, The percentage of beds occupied is &amp;amp;bullet1. ( &amp;amp;DIF_bullet1. change from the previous day).";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;proc printto;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;RUN;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 21:49:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Show-or-in-differences/m-p/834392#M35867</guid>
      <dc:creator>scolitti1</dc:creator>
      <dc:date>2022-09-20T21:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Show (+) or (-) in differences</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Show-or-in-differences/m-p/834393#M35868</link>
      <description>&lt;P&gt;Use the PERCENTN. format — actually this only puts the negative sign on the percent, it will not put a plus sign on it. For 99.9% of uses, the + is understood if it is not present.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 21:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Show-or-in-differences/m-p/834393#M35868</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-20T21:58:15Z</dc:date>
    </item>
  </channel>
</rss>

