<?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: proc format with negative values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-negative-values/m-p/583098#M165969</link>
    <description>&lt;P&gt;This&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;low &amp;lt; -4000='Lower than -4K'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;should be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;low -&amp;lt; -4000='Lower than -4K'&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 22 Aug 2019 08:15:35 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-08-22T08:15:35Z</dc:date>
    <item>
      <title>proc format with negative values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-negative-values/m-p/583092#M165964</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;What is wrong with the code below.&lt;/P&gt;
&lt;P&gt;I am using proc format with negative values&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;29 low&amp;lt; -4000='Lower than -4K'&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;200&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: (, ',', -, =. &lt;BR /&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc format;
value ffmt    
low&amp;lt; -4000='Lower than -4K'
-4000-&amp;lt; -3000='[-4,-3)'
-3000-&amp;lt; -2000='[-3,-2)'
-2000-&amp;lt; -1000='[-2,-1)'
-1000-&amp;lt;- 0='[-1,0)'
0-&amp;lt; 1000='[0,1)'
1000-&amp;lt; 2000='[1,2)'
2000-&amp;lt; 3000='[2,3)'
3000-&amp;lt; 4000='[3,4)'
4000- high ='[4+'
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 08:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-negative-values/m-p/583092#M165964</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-08-22T08:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with negative values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-negative-values/m-p/583096#M165967</link>
      <description>&lt;P&gt;A range needs the hyphen.&lt;/P&gt;
&lt;P&gt;Do the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value ffmt    
  low -&amp;lt; -4000 = 'Lower than -4K'
  -4000 -&amp;lt; -3000 = '[-4,-3)'
  -3000 -&amp;lt; -2000 = '[-3,-2)'
  -2000 -&amp;lt; -1000 = '[-2,-1)'
  -1000 -&amp;lt; 0 = '[-1,0)'
  0 -&amp;lt; 1000 = '[0,1)'
  1000 -&amp;lt; 2000 = '[1,2)'
  2000 -&amp;lt; 3000 = '[2,3)'
  3000 -&amp;lt; 4000 = '[3,4)'
  4000 - high = '[4+'
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that I added some visual formatting to make the code more readable.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 08:13:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-negative-values/m-p/583096#M165967</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-22T08:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with negative values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-negative-values/m-p/583097#M165968</link>
      <description>&lt;P&gt;Okay,&lt;/P&gt;
&lt;P&gt;I see that the error was&lt;/P&gt;
&lt;P&gt;low &amp;lt; -4000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and the correct is&lt;/P&gt;
&lt;P&gt;low-&amp;lt; -4000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the logic here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value ffmt    
low-&amp;lt; -4000='Lower than -4K'
-4000-&amp;lt; -3000='[-4,-3)'
-3000-&amp;lt; -2000='[-3,-2)'
-2000-&amp;lt; -1000='[-2,-1)'
-1000-&amp;lt;- 0='[-1,0)'
0-&amp;lt; 1000='[0,1)'
1000-&amp;lt; 2000='[1,2)'
2000-&amp;lt; 3000='[2,3)'
3000-&amp;lt; 4000='[3,4)'
4000- high ='[4+'
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2019 08:15:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-negative-values/m-p/583097#M165968</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-08-22T08:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with negative values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-negative-values/m-p/583098#M165969</link>
      <description>&lt;P&gt;This&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;low &amp;lt; -4000='Lower than -4K'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;should be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;low -&amp;lt; -4000='Lower than -4K'&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2019 08:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-negative-values/m-p/583098#M165969</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-08-22T08:15:35Z</dc:date>
    </item>
  </channel>
</rss>

