<?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 Time Error in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Time-Error/m-p/69560#M19989</link>
    <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I use the 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;
&lt;BR /&gt;
Log Error:-  Expecting an arithmetic operator.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Kindly suggest.&lt;BR /&gt;
K</description>
    <pubDate>Sun, 06 Feb 2011 06:45:50 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2011-02-06T06:45:50Z</dc:date>
    <item>
      <title>Time Error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Time-Error/m-p/69560#M19989</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I use the 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;
&lt;BR /&gt;
Log Error:-  Expecting an arithmetic operator.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Kindly suggest.&lt;BR /&gt;
K</description>
      <pubDate>Sun, 06 Feb 2011 06:45:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Time-Error/m-p/69560#M19989</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-02-06T06:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Time Error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Time-Error/m-p/69561#M19990</link>
      <description>On the topic of using a "time value" constant, review the SAS doc on the topic here:&lt;BR /&gt;
&lt;BR /&gt;
Google advanced search argument:  time value constant site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
Also, regarding the truncated post, you will need to "edit your existing post" (see the EDIT icon adjacent to the REPLY link), and review this related post on limits with certain data characters (recommend bookmarking the link for future reference).&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=27609" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=27609&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Also, if you are going to post a SAS error condition, do so with a COPY / PASTE directly from your SAS log, revealing all related SAS-executed code, not just statements from our source program.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.

Message was edited by: sbb</description>
      <pubDate>Sun, 06 Feb 2011 20:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Time-Error/m-p/69561#M19990</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-02-06T20:02:30Z</dc:date>
    </item>
  </channel>
</rss>

