<?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 388-185: Expecting an arithmetic operator. in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/ERROR-388-185-Expecting-an-arithmetic-operator/m-p/555519#M7497</link>
    <description>&lt;P&gt;correction;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you missed a blank in NE.&amp;nbsp; that is between NE and .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;IF score1 NE . AND score2 NE . AND score3 NE . THEN take='complete';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Your original code below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;IF score1 NE. AND score2 NE. AND score3 NE. THEN take='complete';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is causing tokenizaion problem at compile time&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2019 02:02:23 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-05-02T02:02:23Z</dc:date>
    <item>
      <title>ERROR 388-185: Expecting an arithmetic operator.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-388-185-Expecting-an-arithmetic-operator/m-p/555517#M7496</link>
      <description>&lt;DIV&gt;&lt;DIV class="sasSource"&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;&lt;STRONG&gt;Original Code&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Data scoredata_ifthen;&lt;BR /&gt;set scoredata0;&lt;BR /&gt;TotalScore= sum(score1, score2, score3);&lt;BR /&gt;AverageScore= mean(score1, score2, score3);&lt;BR /&gt;/* Using the IF...THEN...statement*/&lt;BR /&gt;IF gender ='m' THEN gender_num=1;&lt;BR /&gt;IF score1 NE. AND score2 NE. AND score3 NE. THEN take='complete';&lt;BR /&gt;IF AverageScore GE 90 THEN DO;&lt;BR /&gt;grade= 'A';&lt;BR /&gt;pass= 'pass';&lt;BR /&gt;END;&lt;BR /&gt;run;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;STRONG&gt;After running code&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;73 Data scoredata_ifthen;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 set scoredata0;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 TotalScore= sum(score1, score2, score3);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 AverageScore= mean(score1, score2, score3);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 /* Using the IF...THEN...statement*/&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 IF gender ='m' THEN gender_num=1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 IF score1 NE. AND score2 NE. AND score3 NE. THEN take='complete';&lt;/DIV&gt;&lt;DIV class="sasError"&gt;___&lt;/DIV&gt;&lt;DIV class="sasError"&gt;388&lt;/DIV&gt;&lt;DIV class="sasError"&gt;201&lt;/DIV&gt;&lt;DIV class="sasError"&gt;76&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 388-185: Expecting an arithmetic operator.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 201-322: The option is not recognized and will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 IF AverageScore GE 90 THEN DO;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81 grade= 'A';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82 pass= 'pass';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 END;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84 run;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 01:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-388-185-Expecting-an-arithmetic-operator/m-p/555517#M7496</guid>
      <dc:creator>rylife</dc:creator>
      <dc:date>2019-05-02T01:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 388-185: Expecting an arithmetic operator.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-388-185-Expecting-an-arithmetic-operator/m-p/555519#M7497</link>
      <description>&lt;P&gt;correction;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you missed a blank in NE.&amp;nbsp; that is between NE and .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;IF score1 NE . AND score2 NE . AND score3 NE . THEN take='complete';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Your original code below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;IF score1 NE. AND score2 NE. AND score3 NE. THEN take='complete';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is causing tokenizaion problem at compile time&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 02:02:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-388-185-Expecting-an-arithmetic-operator/m-p/555519#M7497</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-05-02T02:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 388-185: Expecting an arithmetic operator.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-388-185-Expecting-an-arithmetic-operator/m-p/555544#M7499</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;has identified the issue and corrective action.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an alternative, one can also make use of the &lt;FONT face="courier new,courier"&gt;missing&lt;/FONT&gt; function, e.g.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if not missing(score1) and not missing(score2) and not missing(score3) then take='complete';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or, in your specific case, the &lt;FONT face="courier new,courier"&gt;nmiss&lt;/FONT&gt; function could also be of help, as it counts the number of missing numeric values, e.g.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if nmiss(score1,score2,score3) eq 0 then take='complete';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 08:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-388-185-Expecting-an-arithmetic-operator/m-p/555544#M7499</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2019-05-02T08:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 388-185: Expecting an arithmetic operator.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-388-185-Expecting-an-arithmetic-operator/m-p/555655#M7500</link>
      <description>&lt;P&gt;If you want to do something when all values of numeric values are present you might want to consider the NMISS function instead of a bunch of If this and that and somethinelse comparisons:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If Nmiss(Score1, score2, score3) = 0 then take='complete';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you have a lot of value you can even use list notation to reduce coding such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if nmiss( of score1-score25) =0 then take='complete';&lt;/P&gt;
&lt;P&gt;which would certainly be a whole lot easier than 25 AND comparisons.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 16:46:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-388-185-Expecting-an-arithmetic-operator/m-p/555655#M7500</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-02T16:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 388-185: Expecting an arithmetic operator.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-388-185-Expecting-an-arithmetic-operator/m-p/555828#M7505</link>
      <description>Thank you!</description>
      <pubDate>Fri, 03 May 2019 03:05:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-388-185-Expecting-an-arithmetic-operator/m-p/555828#M7505</guid>
      <dc:creator>rylife</dc:creator>
      <dc:date>2019-05-03T03:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 388-185: Expecting an arithmetic operator.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-388-185-Expecting-an-arithmetic-operator/m-p/555829#M7506</link>
      <description>&lt;P&gt;Thank you, this will be useful once I use larger data sets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 03:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-388-185-Expecting-an-arithmetic-operator/m-p/555829#M7506</guid>
      <dc:creator>rylife</dc:creator>
      <dc:date>2019-05-03T03:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 388-185: Expecting an arithmetic operator.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-388-185-Expecting-an-arithmetic-operator/m-p/555830#M7507</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 03:14:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-388-185-Expecting-an-arithmetic-operator/m-p/555830#M7507</guid>
      <dc:creator>rylife</dc:creator>
      <dc:date>2019-05-03T03:14:40Z</dc:date>
    </item>
  </channel>
</rss>

