<?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: ERROR 22-322: in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322/m-p/282093#M311411</link>
    <description>&lt;P&gt;I guess I found the problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was a DROP that was creating problems before....&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2016 07:37:54 GMT</pubDate>
    <dc:creator>sylvainbg</dc:creator>
    <dc:date>2016-07-05T07:37:54Z</dc:date>
    <item>
      <title>ERROR 22-322:</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322/m-p/282088#M311410</link>
      <description>&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Hi&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;I get an error &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, -, :, ;, _ALL_, _CHARACTER_,&lt;/P&gt;&lt;P&gt;_CHAR_, _NUMERIC_.&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;&lt;FONT face="Courier New" size="2"&gt;The code that gets the error is this one, basicall V7400...V74505 are numerical values and I want to test if the sum is not egal to V7440 (also numerical). What I am missing?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Big Thanks in advance&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;IF SUM(V7400,V7401,V7402,V7403,(-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)*V7500,(-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)*V7501,(-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)*V7502,(-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)*V7503,(-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)*V7504,(-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)*V7505) ^= SUM(V7440) then do ;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 06:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322/m-p/282088#M311410</guid>
      <dc:creator>sylvainbg</dc:creator>
      <dc:date>2016-07-05T06:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322:</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322/m-p/282093#M311411</link>
      <description>&lt;P&gt;I guess I found the problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was a DROP that was creating problems before....&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 07:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322/m-p/282093#M311411</guid>
      <dc:creator>sylvainbg</dc:creator>
      <dc:date>2016-07-05T07:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322:</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322/m-p/282094#M311412</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you sure that the error is in that line? I have written the code and works fine for me&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
format V7400-V7403 V7500-V7505 V7440  best12.;
V7400=1;
V7401=1;
V7402=1;
V7403=1;
V7500=-1;
V7501=-1;
V7502=-1;
V7503=-1;
V7504=-1;
V7505=1;
V7440=7;
IF SUM(V7400,V7401,V7402,V7403,(-1)*V7500,(-1)*V7501,(-1)*V7502,(-1)*V7503,(-1)*V7504,(-1)*V7505) ^= SUM(V7440) then do ;
	put "IT WORKS";
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Since the V7440 ne 8, IT WORKS is printted in the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 07:38:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322/m-p/282094#M311412</guid>
      <dc:creator>arodriguez</dc:creator>
      <dc:date>2016-07-05T07:38:20Z</dc:date>
    </item>
  </channel>
</rss>

