<?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 Error: Expecting an arithmetic operator &amp;amp; Syntax error, statement will be ignored in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Error-Expecting-an-arithmetic-operator-amp-Syntax-error/m-p/355101#M64161</link>
    <description>&lt;P&gt;I keep getting error warning like this:&lt;/P&gt;&lt;P&gt;1729 DATA PROJECT.MERGE_ALL;&lt;BR /&gt;1730 merge REHABILITATION4(in=Phoebe) DISCHARGE5(in=Fredo) EMERGENCY5(in=lego) ;&lt;BR /&gt;1731 by COUNTY_Name;&lt;BR /&gt;1732 drop county;&lt;BR /&gt;1733 if Phoebe Fredo lego;&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; -----&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; 388&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 388-185: Expecting an arithmetic operator.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help to look what wrong with the code?&lt;/P&gt;&lt;P&gt;Thanks a lot !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA PROJECT.MERGE_ALL;&lt;BR /&gt;merge REHABILITATION4(in=Phoebe) DISCHARGE5(in=Fredo) EMERGENCY5(in=lego) ;&lt;BR /&gt;by COUNTY_Name;&lt;BR /&gt;drop county;&lt;BR /&gt;if Phoebe Fredo lego;&lt;BR /&gt;Format COUNTY_Name $24.;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=merge_all;&lt;BR /&gt;run;&lt;BR /&gt;proc contents data= MERGE_ALL;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2017 23:17:36 GMT</pubDate>
    <dc:creator>Phoebelee</dc:creator>
    <dc:date>2017-05-01T23:17:36Z</dc:date>
    <item>
      <title>Error: Expecting an arithmetic operator &amp; Syntax error, statement will be ignored</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Expecting-an-arithmetic-operator-amp-Syntax-error/m-p/355101#M64161</link>
      <description>&lt;P&gt;I keep getting error warning like this:&lt;/P&gt;&lt;P&gt;1729 DATA PROJECT.MERGE_ALL;&lt;BR /&gt;1730 merge REHABILITATION4(in=Phoebe) DISCHARGE5(in=Fredo) EMERGENCY5(in=lego) ;&lt;BR /&gt;1731 by COUNTY_Name;&lt;BR /&gt;1732 drop county;&lt;BR /&gt;1733 if Phoebe Fredo lego;&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; -----&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; 388&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 388-185: Expecting an arithmetic operator.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help to look what wrong with the code?&lt;/P&gt;&lt;P&gt;Thanks a lot !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA PROJECT.MERGE_ALL;&lt;BR /&gt;merge REHABILITATION4(in=Phoebe) DISCHARGE5(in=Fredo) EMERGENCY5(in=lego) ;&lt;BR /&gt;by COUNTY_Name;&lt;BR /&gt;drop county;&lt;BR /&gt;if Phoebe Fredo lego;&lt;BR /&gt;Format COUNTY_Name $24.;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=merge_all;&lt;BR /&gt;run;&lt;BR /&gt;proc contents data= MERGE_ALL;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 23:17:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Expecting-an-arithmetic-operator-amp-Syntax-error/m-p/355101#M64161</guid>
      <dc:creator>Phoebelee</dc:creator>
      <dc:date>2017-05-01T23:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Expecting an arithmetic operator &amp; Syntax error, statement will be ignored</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Expecting-an-arithmetic-operator-amp-Syntax-error/m-p/355102#M64162</link>
      <description>&lt;P&gt;What did you intend by this statement?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if Phoebe Fredo lego;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 May 2017 23:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Expecting-an-arithmetic-operator-amp-Syntax-error/m-p/355102#M64162</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-05-01T23:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Expecting an arithmetic operator &amp; Syntax error, statement will be ignored</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Expecting-an-arithmetic-operator-amp-Syntax-error/m-p/355103#M64163</link>
      <description>&lt;P&gt;When a variable is used in an IF SAS either expects a comparison such as =, &amp;lt;, &amp;gt;, ge or similar if there is a second variable mentioned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Phoebe, Fredo and Lego&amp;nbsp;are currently numeric variables with values of 0 or 1. Depending on what you are attempting then the statement should be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If Phoebe =1 AND Fredo=1 and Lego=1; if you want records with all three sets contributing.&lt;/P&gt;
&lt;P&gt;This can be shortened to :&lt;/P&gt;
&lt;P&gt;If Phoebe And Fredo And Lego; because SAS will treat non-0 and non-missing values as "True" in a comparison.&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 23:24:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Expecting-an-arithmetic-operator-amp-Syntax-error/m-p/355103#M64163</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-01T23:24:34Z</dc:date>
    </item>
  </channel>
</rss>

