<?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 format negative numbers? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-negative-numbers/m-p/387057#M11687</link>
    <description>&lt;P&gt;Show your proc format code.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2017 15:37:45 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-08-10T15:37:45Z</dc:date>
    <item>
      <title>How to format negative numbers?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-negative-numbers/m-p/386890#M11682</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset like the following. I would like to format all those numeric values to no decimals. Like -8 -4 4 for the first line. But after I used the Proc Format, all the negative numbers are missing. Could you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;char1 char2 char3&lt;BR /&gt;-8.00000 -4 4.00&lt;BR /&gt;-8.00000 -4 14.00&lt;BR /&gt;6.00000 8 4.00&lt;BR /&gt;-1.00000 3 4.00&lt;BR /&gt;6.00000 3 14.00&lt;BR /&gt;6.00000 0 4.00&lt;BR /&gt;6.00000 0 4.00&lt;BR /&gt;11.00000 3 4.00&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 08:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-negative-numbers/m-p/386890#M11682</guid>
      <dc:creator>JinboZhao</dc:creator>
      <dc:date>2017-08-10T08:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to format negative numbers?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-negative-numbers/m-p/386892#M11683</link>
      <description>&lt;P&gt;A search is your friend:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Numeric-variable-with-ve-sign-and-leading-zeros/td-p/37410" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Numeric-variable-with-ve-sign-and-leading-zeros/td-p/37410&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 08:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-negative-numbers/m-p/386892#M11683</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-10T08:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to format negative numbers?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-negative-numbers/m-p/386926#M11685</link>
      <description>&lt;P&gt;The variable names CHAR1, CHAR2, and CHAR3 sound suspiciously like character variables. &amp;nbsp;Are they character or are they numeric? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have non-zero values after the decimal point such as -8.3000, what would you like the result to be? &amp;nbsp;How about the result for an original value of -8.99?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You said you tried PROC FORMAT. &amp;nbsp;What did you already try, that didn't work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the value is positive such as 8.0000, should it also lose the zeros? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The solution might be as simple as this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;char1 = scan(char1, 1, '.') ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The harder part is spelling out the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 10:55:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-negative-numbers/m-p/386926#M11685</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-08-10T10:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to format negative numbers?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-negative-numbers/m-p/387057#M11687</link>
      <description>&lt;P&gt;Show your proc format code.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 15:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-format-negative-numbers/m-p/387057#M11687</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-10T15:37:45Z</dc:date>
    </item>
  </channel>
</rss>

