<?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 proc format with ranges that included negative values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-ranges-that-included-negative-values/m-p/583067#M165949</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to create proc format with ranges that included negative values&lt;/P&gt;
&lt;P&gt;I receive an error&amp;nbsp;&lt;/P&gt;
&lt;P&gt;28 low&amp;lt;(-100000)='Lower than -100K'&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: (, ',', -, =.&lt;/P&gt;
&lt;P&gt;ERROR 76-322: Syntax error, statement 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;(-100000)='Lower than -100K'
                (-100000)-&amp;lt;(-50000)='[-100,-50)'
                (-50000)-&amp;lt;(-40000)='[-50,-40)'
                (-40000)-&amp;lt;(-30000)='[-40,-30)'
                (-30000)-&amp;lt;(-20000)='[-30,-20)'
                (-20000)-&amp;lt;(-15000)='[-20,-15)'
                (-15000)-&amp;lt;(-10000)='[-15,-10)'
                (-10000)-&amp;lt;(-5000)='[-10,-5)'
                (-5000)-&amp;lt;(-1000)='[-5,-1)'
                (-1000)-&amp;lt;0='[-1,0)'
                0-&amp;lt;1000='[0,1)'
                1000-&amp;lt;5000='[1,5)'
                5000-&amp;lt;10000='[5,10)'
                10000-&amp;lt;15000='[10,15)'
                15000-&amp;lt;20000='[15,20)'
                20000-&amp;lt;30000='[20,30)'
                30000-&amp;lt;40000='[30,40)'
                40000-&amp;lt;50000='[40,50)'
                50000-&amp;lt;100000='[50,100)'
                100000-high ='[100+'
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2019 06:55:46 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2019-08-22T06:55:46Z</dc:date>
    <item>
      <title>proc format with ranges that included negative values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-ranges-that-included-negative-values/m-p/583067#M165949</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to create proc format with ranges that included negative values&lt;/P&gt;
&lt;P&gt;I receive an error&amp;nbsp;&lt;/P&gt;
&lt;P&gt;28 low&amp;lt;(-100000)='Lower than -100K'&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: (, ',', -, =.&lt;/P&gt;
&lt;P&gt;ERROR 76-322: Syntax error, statement 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;(-100000)='Lower than -100K'
                (-100000)-&amp;lt;(-50000)='[-100,-50)'
                (-50000)-&amp;lt;(-40000)='[-50,-40)'
                (-40000)-&amp;lt;(-30000)='[-40,-30)'
                (-30000)-&amp;lt;(-20000)='[-30,-20)'
                (-20000)-&amp;lt;(-15000)='[-20,-15)'
                (-15000)-&amp;lt;(-10000)='[-15,-10)'
                (-10000)-&amp;lt;(-5000)='[-10,-5)'
                (-5000)-&amp;lt;(-1000)='[-5,-1)'
                (-1000)-&amp;lt;0='[-1,0)'
                0-&amp;lt;1000='[0,1)'
                1000-&amp;lt;5000='[1,5)'
                5000-&amp;lt;10000='[5,10)'
                10000-&amp;lt;15000='[10,15)'
                15000-&amp;lt;20000='[15,20)'
                20000-&amp;lt;30000='[20,30)'
                30000-&amp;lt;40000='[30,40)'
                40000-&amp;lt;50000='[40,50)'
                50000-&amp;lt;100000='[50,100)'
                100000-high ='[100+'
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 06:55:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-ranges-that-included-negative-values/m-p/583067#M165949</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-08-22T06:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with ranges that included negative values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-ranges-that-included-negative-values/m-p/583071#M165952</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to create proc format with ranges that included negative values&lt;/P&gt;
&lt;P&gt;I receive an error&amp;nbsp;&lt;/P&gt;
&lt;P&gt;28 low&amp;lt;(-100000)='Lower than -100K'&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: (, ',', -, =.&lt;/P&gt;
&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the line mentioned in the log ... there is an obvious syntax error. Comparing it to the other range-definitions may help.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 07:03:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-ranges-that-included-negative-values/m-p/583071#M165952</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-08-22T07:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with ranges that included negative values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-ranges-that-included-negative-values/m-p/583072#M165953</link>
      <description>&lt;P&gt;You don't need the parenthesis. Try:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format lib=work;
  value test
     low -  -1000 = "less then -1K"
     -100 - 0 = "Still negative"
     0 - high = 'Positive"
; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2019 07:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-ranges-that-included-negative-values/m-p/583072#M165953</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-08-22T07:03:39Z</dc:date>
    </item>
  </channel>
</rss>

