<?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: Outputting blank variables in if/then statement in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Outputting-blank-variables-in-if-then-statement/m-p/841383#M36477</link>
    <description>&lt;P&gt;I'm not quite understanding your example, but would suggest building a picture format, as described in the answers to this post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Numeric-Format-add-positive-sign-to-values/td-p/406513" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Numeric-Format-add-positive-sign-to-values/td-p/406513&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2022 20:48:08 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2022-10-28T20:48:08Z</dc:date>
    <item>
      <title>Outputting blank variables in if/then statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Outputting-blank-variables-in-if-then-statement/m-p/841376#M36476</link>
      <description>&lt;P&gt;I have created an automated report that changes based on daily numbers. I have been asked to add (+) or (-) in front of increased or decreased numbers. SAS will already put a (-) sign in front of a decreased number, so I put together code that will out put a (+) for an increased number. However, if there was no change or if there was a decrease it will still output a (+). Below is my code so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;data emaster;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;set counts11;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;if DIF_bullet1&amp;gt;0 then b1='+'; else if DIF_bullet1&amp;lt;=0 then b1='';&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;format today_s_date MMDDYY10.;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;run;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 20:33:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Outputting-blank-variables-in-if-then-statement/m-p/841376#M36476</guid>
      <dc:creator>scolitti1</dc:creator>
      <dc:date>2022-10-28T20:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting blank variables in if/then statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Outputting-blank-variables-in-if-then-statement/m-p/841383#M36477</link>
      <description>&lt;P&gt;I'm not quite understanding your example, but would suggest building a picture format, as described in the answers to this post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Numeric-Format-add-positive-sign-to-values/td-p/406513" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Numeric-Format-add-positive-sign-to-values/td-p/406513&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 20:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Outputting-blank-variables-in-if-then-statement/m-p/841383#M36477</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-10-28T20:48:08Z</dc:date>
    </item>
  </channel>
</rss>

