<?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 Log Error: Expecting an arithmetic operator. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Log-Error-Expecting-an-arithmetic-operator/m-p/69489#M19966</link>
    <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I use code:-&lt;BR /&gt;
&lt;BR /&gt;
data segment;&lt;BR /&gt;
set analyse;&lt;BR /&gt;
if '00:00:08'&amp;lt;=time&amp;lt;='09:00:00' then time_new='Before 9 A.M.'&lt;BR /&gt;
Else IF '09:01:00'&amp;lt;=time&amp;lt;='12:00:00' then time_new='Before Noon'&lt;BR /&gt;
Else IF '12:01:00'&amp;lt;=time&amp;lt;='17:00:00' then time_new='After Noon'&lt;BR /&gt;
Else IF '17:01:00'&amp;lt;=time&amp;lt;='21:00:00' then time_new='Evening'&lt;BR /&gt;
Else IF '21:00:01'&amp;lt;=time&amp;lt;='24:00:00' then time_new='Evening';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
The time is a character variable of length 8 in the SAS dataset analyse.&lt;BR /&gt;
&lt;BR /&gt;
Log Error:- Expecting an arithmetic operator.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Kindly suggest.&lt;BR /&gt;
K</description>
    <pubDate>Sun, 06 Feb 2011 06:29:23 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2011-02-06T06:29:23Z</dc:date>
    <item>
      <title>Log Error: Expecting an arithmetic operator.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Log-Error-Expecting-an-arithmetic-operator/m-p/69489#M19966</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I use code:-&lt;BR /&gt;
&lt;BR /&gt;
data segment;&lt;BR /&gt;
set analyse;&lt;BR /&gt;
if '00:00:08'&amp;lt;=time&amp;lt;='09:00:00' then time_new='Before 9 A.M.'&lt;BR /&gt;
Else IF '09:01:00'&amp;lt;=time&amp;lt;='12:00:00' then time_new='Before Noon'&lt;BR /&gt;
Else IF '12:01:00'&amp;lt;=time&amp;lt;='17:00:00' then time_new='After Noon'&lt;BR /&gt;
Else IF '17:01:00'&amp;lt;=time&amp;lt;='21:00:00' then time_new='Evening'&lt;BR /&gt;
Else IF '21:00:01'&amp;lt;=time&amp;lt;='24:00:00' then time_new='Evening';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
The time is a character variable of length 8 in the SAS dataset analyse.&lt;BR /&gt;
&lt;BR /&gt;
Log Error:- Expecting an arithmetic operator.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Kindly suggest.&lt;BR /&gt;
K</description>
      <pubDate>Sun, 06 Feb 2011 06:29:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Log-Error-Expecting-an-arithmetic-operator/m-p/69489#M19966</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-02-06T06:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Log Error: Expecting an arithmetic operator.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Log-Error-Expecting-an-arithmetic-operator/m-p/69490#M19967</link>
      <description>please change your message, replacing the "less than or equal to" symbols with " LE " and we might get the whole message</description>
      <pubDate>Sun, 06 Feb 2011 08:27:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Log-Error-Expecting-an-arithmetic-operator/m-p/69490#M19967</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-02-06T08:27:59Z</dc:date>
    </item>
  </channel>
</rss>

