<?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: If selecting time range in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/If-selecting-time-range/m-p/558612#M22758</link>
    <description>&lt;P&gt;Why are you taking the difference between two constant times?&amp;nbsp; That doesn't make much sense.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you trying to see if the variable is between the two constants?&lt;/P&gt;
&lt;P&gt;Perhaps something like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'11:00't &amp;lt;= starttime &amp;lt;='19:00't &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 14 May 2019 13:18:15 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-05-14T13:18:15Z</dc:date>
    <item>
      <title>If selecting time range</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/If-selecting-time-range/m-p/558607#M22757</link>
      <description>I need to id a time of atferhours. here is my data test;;&lt;BR /&gt;Set test;&lt;BR /&gt;If starttime =&amp;gt;'19:00' t - '11:00' t and yes='yes' then atferhour='atferhour';&lt;BR /&gt;&lt;BR /&gt;If endtime=&amp;gt;'01:00't -'06:00't and yes 'yes' then atferhour='atferhour';&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;It doesnt id correctly the time&lt;BR /&gt;&lt;BR /&gt;The data looks&lt;BR /&gt;Starttime endtime. Atferhour&lt;BR /&gt;16:55. 17:29&lt;BR /&gt;14:41. 14:58&lt;BR /&gt;20:37. 20:43. Atferhour&lt;BR /&gt;23:52. 0:02. Atferhour</description>
      <pubDate>Tue, 14 May 2019 12:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/If-selecting-time-range/m-p/558607#M22757</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2019-05-14T12:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: If selecting time range</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/If-selecting-time-range/m-p/558612#M22758</link>
      <description>&lt;P&gt;Why are you taking the difference between two constant times?&amp;nbsp; That doesn't make much sense.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you trying to see if the variable is between the two constants?&lt;/P&gt;
&lt;P&gt;Perhaps something like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'11:00't &amp;lt;= starttime &amp;lt;='19:00't &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 May 2019 13:18:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/If-selecting-time-range/m-p/558612#M22758</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-14T13:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: If selecting time range</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/If-selecting-time-range/m-p/558613#M22759</link>
      <description>&lt;P&gt;I am not clear with the query, but you can try the below code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Starttime :time5. endtime :time5.;
if Starttime&amp;gt;='19:00't then afterhout='afterhour';
format Starttime endtime time5.;;
cards;
16:55 17:29
14:41 14:58
20:37 20:43 
23:52 0:02  
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 May 2019 13:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/If-selecting-time-range/m-p/558613#M22759</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-05-14T13:25:14Z</dc:date>
    </item>
  </channel>
</rss>

