<?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 Expecting an arithmetic operator in All Things Community</title>
    <link>https://communities.sas.com/t5/All-Things-Community/Expecting-an-arithmetic-operator/m-p/489914#M3418</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am New to SAS &amp;amp; practicing on SAS university Edition. while practicing for If-then-else statement, I am getting below error;&lt;/P&gt;&lt;P&gt;"ERROR 388-185: Expecting an arithmetic operator.&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR 200-322: The symbol is not recognized and will be ignored."&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Below is the complete code from editor:&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;P&gt;data work.newfile;&lt;BR /&gt;&amp;nbsp;set sashelp.heart;&lt;BR /&gt;&amp;nbsp;Where Smoking_Status='Non-smoker';&lt;BR /&gt;&amp;nbsp;if Weight&amp;gt;100, then Weight_Status='Underweight';&lt;BR /&gt;&amp;nbsp;if Weight&amp;lt;100, then Weight_Status='Overweight';&lt;BR /&gt;&amp;nbsp;Keep Status Sex Height Weight Weight_Status Smoking Smoking_Status;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc contents data=work.newfile;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=work.newfile;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Please help on these.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;I tried all possible solutions from my side.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;If anyone he&lt;/DIV&gt;</description>
    <pubDate>Sun, 26 Aug 2018 16:08:52 GMT</pubDate>
    <dc:creator>mjaywant</dc:creator>
    <dc:date>2018-08-26T16:08:52Z</dc:date>
    <item>
      <title>Expecting an arithmetic operator</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Expecting-an-arithmetic-operator/m-p/489914#M3418</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am New to SAS &amp;amp; practicing on SAS university Edition. while practicing for If-then-else statement, I am getting below error;&lt;/P&gt;&lt;P&gt;"ERROR 388-185: Expecting an arithmetic operator.&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR 200-322: The symbol is not recognized and will be ignored."&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Below is the complete code from editor:&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;P&gt;data work.newfile;&lt;BR /&gt;&amp;nbsp;set sashelp.heart;&lt;BR /&gt;&amp;nbsp;Where Smoking_Status='Non-smoker';&lt;BR /&gt;&amp;nbsp;if Weight&amp;gt;100, then Weight_Status='Underweight';&lt;BR /&gt;&amp;nbsp;if Weight&amp;lt;100, then Weight_Status='Overweight';&lt;BR /&gt;&amp;nbsp;Keep Status Sex Height Weight Weight_Status Smoking Smoking_Status;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc contents data=work.newfile;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=work.newfile;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Please help on these.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;I tried all possible solutions from my side.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;If anyone he&lt;/DIV&gt;</description>
      <pubDate>Sun, 26 Aug 2018 16:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Expecting-an-arithmetic-operator/m-p/489914#M3418</guid>
      <dc:creator>mjaywant</dc:creator>
      <dc:date>2018-08-26T16:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Expecting an arithmetic operator</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Expecting-an-arithmetic-operator/m-p/489916#M3419</link>
      <description>&lt;P&gt;&lt;SPAN&gt;There shouldn't be a comma after the expression&amp;nbsp;Weight&amp;gt;100,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if Weight&amp;gt;100, then Weight_Status='Underweight';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;if Weight&amp;lt;100, then Weight_Status='Overweight';&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;correction:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if Weight&amp;gt;100 then Weight_Status='Underweight';&lt;BR /&gt;else&amp;nbsp; if Weight&amp;lt;100 then Weight_Status='Overweight';&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Aug 2018 16:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Expecting-an-arithmetic-operator/m-p/489916#M3419</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-08-26T16:17:07Z</dc:date>
    </item>
  </channel>
</rss>

