<?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 for negative range in UNIX (bash) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264604#M57799</link>
    <description>Many Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Mon, 18 Apr 2016 15:22:39 GMT</pubDate>
    <dc:creator>KP12</dc:creator>
    <dc:date>2016-04-18T15:22:39Z</dc:date>
    <item>
      <title>PROC FORMAT for negative range in UNIX (bash)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264573#M57780</link>
      <description>&lt;P&gt;Hello Everyone, I'm trying to execute below&amp;nbsp;code&amp;nbsp;in UNIX (bash):&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc format;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; value attr4_fmt&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; low - &amp;lt; -90000 = "(&amp;lt; -90000)"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-90000 - 523999 = "(-90000 - 523999)"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 524000 - high = "(523999 &amp;lt;)";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;But getting following error:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: PROCEDURE FORMAT used (Total process time):&lt;BR /&gt; real time 0.00 seconds&lt;BR /&gt; cpu time 0.00 seconds&lt;/P&gt;
&lt;P&gt;1531 &amp;nbsp; &amp;nbsp;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-90000 – 523999 = "(-90000 – 523999)"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;22&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: (, ',', -, &amp;lt;, =.&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;P&gt;Can someone please help to figure out&amp;nbsp;what I'm missing here ?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 14:33:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264573#M57780</guid>
      <dc:creator>KP12</dc:creator>
      <dc:date>2016-04-18T14:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT for negative range in UNIX (bash)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264580#M57782</link>
      <description>&lt;P&gt;Works fine on 9.4 windows SAS (note you dont need the &amp;lt; in the first one, it is low to -9000). &amp;nbsp;Have you tried resetting and running just that code, am thinking maybe something else is causing the problem.:&lt;/P&gt;
&lt;PRE&gt;proc format;
  value attr4_fmt
    low - -90000 = "(&amp;lt; -90000)"
    -90000 - 523999 = "(-90000 - 523999)"
    524000 - high = "(523999 &amp;lt;)";
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Apr 2016 14:46:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264580#M57782</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-18T14:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT for negative range in UNIX (bash)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264583#M57784</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37350"&gt;@KP12﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While your code seems to be okay (and I think you do need the "&amp;lt;" sign), your log excerpt shows different types of "hyphens." Please replace all these by ordinary hyphens and the errors should go away.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 14:50:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264583#M57784</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-18T14:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT for negative range in UNIX (bash)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264584#M57785</link>
      <description>&lt;P&gt;Yes, that's correct it works completely fine in Windows environment, but in UNIX it doesn't, I believe it's because of misinterpretation of -(negative) sign with -(dash) sign of range by UNIX. I tried running this code after removing negative sign and it worked.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 14:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264584#M57785</guid>
      <dc:creator>KP12</dc:creator>
      <dc:date>2016-04-18T14:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT for negative range in UNIX (bash)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264587#M57787</link>
      <description>Hello @FreelanceReinhard,&lt;BR /&gt;&lt;BR /&gt;Actually I copied the log and pasted here so it looks like different types of hyphens (may be because of font change while pasting), in real all are ordinary hyphens only.</description>
      <pubDate>Mon, 18 Apr 2016 14:56:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264587#M57787</guid>
      <dc:creator>KP12</dc:creator>
      <dc:date>2016-04-18T14:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT for negative range in UNIX (bash)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264590#M57789</link>
      <description>&lt;P&gt;Sounds strange. Can you perhaps save your code (only the PROC FORMAT step) and post it as an attachment (.txt file)?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 14:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264590#M57789</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-18T14:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT for negative range in UNIX (bash)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264592#M57790</link>
      <description>&lt;P&gt;I copied the code as posted, and it ran fine under Unix.&amp;nbsp; Perhaps there are slight differences between your Windows code and your Unix code?&amp;nbsp; You could find out by reading your code (line by line, as a long character variable), and printing it out in hex.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:05:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264592#M57790</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-04-18T15:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT for negative range in UNIX (bash)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264593#M57791</link>
      <description>&lt;P&gt;Attached is the code I'm using in .txt file.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:06:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264593#M57791</guid>
      <dc:creator>KP12</dc:creator>
      <dc:date>2016-04-18T15:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT for negative range in UNIX (bash)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264595#M57792</link>
      <description>&lt;P&gt;I'm using attached code in UNIX, can you please have a look and suggest if I'm missing something ?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264595#M57792</guid>
      <dc:creator>KP12</dc:creator>
      <dc:date>2016-04-18T15:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT for negative range in UNIX (bash)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264597#M57794</link>
      <description>&lt;P&gt;I've just looked at your first attachment with a hex editor: As expected, the "hyphen" in question (between -90000 and 523999) is different from the others: It is '96'x, not '2D'x as it should.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:12:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264597#M57794</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-18T15:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT for negative range in UNIX (bash)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264599#M57795</link>
      <description>Can you please explain this a bit, I'm very new to UNIX so don't have much idea about it.</description>
      <pubDate>Mon, 18 Apr 2016 15:14:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264599#M57795</guid>
      <dc:creator>KP12</dc:creator>
      <dc:date>2016-04-18T15:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT for negative range in UNIX (bash)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264602#M57797</link>
      <description>&lt;P&gt;It's not the negative 9000 is it the hyphen between the values. &amp;nbsp;It is hex '96'x not '2D'x like it should be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2838i04B56FB5016044B6/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264602#M57797</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-04-18T15:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT for negative range in UNIX (bash)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264603#M57798</link>
      <description>&lt;P&gt;I'd say, simply overtype this "mock hyphen" with an ordinary hyphen or copy and paste one of the minus signs from&amp;nbsp;your code at this place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: Also,&amp;nbsp;with this character I get the same error message in a Windows SAS session -- not surprisingly, because SAS requires the correct characters, regardless of the operating system.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264603#M57798</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-18T15:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT for negative range in UNIX (bash)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264604#M57799</link>
      <description>Many Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:22:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-for-negative-range-in-UNIX-bash/m-p/264604#M57799</guid>
      <dc:creator>KP12</dc:creator>
      <dc:date>2016-04-18T15:22:39Z</dc:date>
    </item>
  </channel>
</rss>

