<?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: How to use &amp;quot;where statement&amp;quot; for bounding time? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383667#M277053</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138303"&gt;@aminkarimid&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;How can I use your codes in sas 9.4 TS Level 1M3 X64_8PRO platform.&lt;/P&gt;
&lt;P&gt;I use the code which is shown below. However, it doesn't work.&lt;/P&gt;
&lt;PRE&gt;%data2datastep(sampledata03,work,test,20)&lt;/PRE&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;- download the .zip&lt;/P&gt;
&lt;P&gt;- extract the .sas file to a suitable location&lt;/P&gt;
&lt;P&gt;- open the .sas file in Enterprise Guide, or open in a text editor and copy/paste to SAS Studio&lt;/P&gt;
&lt;P&gt;- run the code once&lt;/P&gt;
&lt;P&gt;- you can now use the macro in the current session&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a server installation, save the code to the server, so you can %include it any time you need the macro.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2017 13:02:53 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-07-28T13:02:53Z</dc:date>
    <item>
      <title>How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383617#M277045</link>
      <description>&lt;P&gt;&amp;nbsp;Hello everybody,&lt;/P&gt;&lt;P&gt;I want to restrict time variable of my dataset and I use code which is shown below, however, it doesn't work and out of range data still exist in the dataset!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data sampledata04;
	set sampledata03;
	where hour(TRD_EVENT_TM) between 9 and 12;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attributes of dataset are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Alphabetic List of Variables and Attributes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#&lt;/TD&gt;&lt;TD&gt;Variable&lt;/TD&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;TD&gt;Len&lt;/TD&gt;&lt;TD&gt;Format&lt;/TD&gt;&lt;TD&gt;Informat&lt;/TD&gt;&lt;TD&gt;Label&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;TRD_EVENT_DT&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;DATE9.&lt;/TD&gt;&lt;TD&gt;DATETIME19.&lt;/TD&gt;&lt;TD&gt;TRD_EVENT_DT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;TRD_EVENT_TM&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;TIME5.&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;TRD_PR&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;TRD_PR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;TRD_STCK_CD&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;$15.00&lt;/TD&gt;&lt;TD&gt;$15.00&lt;/TD&gt;&lt;TD&gt;TRD_STCK_CD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;TRD_TUROVR&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;TD&gt;TRD_TUROVR&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;What is the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 10:30:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383617#M277045</guid>
      <dc:creator>aminkarimid</dc:creator>
      <dc:date>2017-07-28T10:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383622#M277046</link>
      <description>&lt;P&gt;Its been mentioned before,&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;post test data in the form of a datastep in the body of the post&lt;/STRONG&gt;&lt;/U&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I can tell from that trd_event_tm appears to be a numeric time variable, so the hour function will work. &amp;nbsp;However I cannot see any data to work out if there is data between 9 and 12 which is likely the cause as:&lt;/P&gt;
&lt;PRE&gt;data test;
  time="09:11"t; output;
  time="13:10"t; output;
run;
data want;
  set test;
  where hour(time) between 9 and 12;
run;&lt;/PRE&gt;
&lt;P&gt;Works fine and only returns one row.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 10:39:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383622#M277046</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-28T10:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383623#M277047</link>
      <description>Could you add the dataset sample03 and sample04(or an extract from it) to your post in text? This seems OK to me.</description>
      <pubDate>Fri, 28 Jul 2017 10:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383623#M277047</guid>
      <dc:creator>WesleyD</dc:creator>
      <dc:date>2017-07-28T10:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383636#M277048</link>
      <description>&lt;P&gt;Here is a sample of my dataset. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 11:37:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383636#M277048</guid>
      <dc:creator>aminkarimid</dc:creator>
      <dc:date>2017-07-28T11:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383639#M277049</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138303"&gt;@aminkarimid&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Here is a sample of my dataset. Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This not a dataset, but an Excel file.&lt;/P&gt;
&lt;P&gt;Excel spreadsheet files cannot convey datatypes and SAS formats, and are blocked in many organizations from download for security reasons.&lt;/P&gt;
&lt;P&gt;Please use the macro provided in&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; to convert your dataset to a data step and post that here.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 11:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383639#M277049</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-28T11:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383643#M277050</link>
      <description>&lt;P&gt;I don't see any valid timestamps in there.&lt;BR /&gt;&lt;BR /&gt;Also note that your datastep will include the timestamps up to 1 and not up to 12, since the between statement will include all timestamps with an HOUR of 12 (so up to 12:59:59). This might be the purpose, but I'd like to point it out...&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 12:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383643#M277050</guid>
      <dc:creator>WesleyD</dc:creator>
      <dc:date>2017-07-28T12:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383653#M277051</link>
      <description>&lt;P&gt;So, Would you please tell me how can I fix this problem?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you know another codes for this purpose, please tell me.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 12:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383653#M277051</guid>
      <dc:creator>aminkarimid</dc:creator>
      <dc:date>2017-07-28T12:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383663#M277052</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&lt;/P&gt;&lt;P&gt;How can I use your codes using&amp;nbsp;sas 9.4 TS Level 1M3 X64_8PRO platform?&lt;/P&gt;&lt;P&gt;I use the code which is shown below. However, it doesn't work.&lt;/P&gt;&lt;PRE&gt;%data2datastep(sampledata03,work,test,20)&lt;/PRE&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 12:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383663#M277052</guid>
      <dc:creator>aminkarimid</dc:creator>
      <dc:date>2017-07-28T12:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383667#M277053</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138303"&gt;@aminkarimid&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;How can I use your codes in sas 9.4 TS Level 1M3 X64_8PRO platform.&lt;/P&gt;
&lt;P&gt;I use the code which is shown below. However, it doesn't work.&lt;/P&gt;
&lt;PRE&gt;%data2datastep(sampledata03,work,test,20)&lt;/PRE&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;- download the .zip&lt;/P&gt;
&lt;P&gt;- extract the .sas file to a suitable location&lt;/P&gt;
&lt;P&gt;- open the .sas file in Enterprise Guide, or open in a text editor and copy/paste to SAS Studio&lt;/P&gt;
&lt;P&gt;- run the code once&lt;/P&gt;
&lt;P&gt;- you can now use the macro in the current session&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a server installation, save the code to the server, so you can %include it any time you need the macro.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 13:02:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383667#M277053</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-28T13:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383672#M277054</link>
      <description>&lt;P&gt;Here is a sample of my dataset.&lt;BR /&gt;Thanks in advance.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data WORK.SAMPLEDATA03;
  infile datalines dsd truncover;
  input TRD_STCK_CD:$15. TRD_PR:32. TRD_TUROVR:14. TRD_EVENT_DT:DATE9. TRD_EVENT_TM:TIME5.;
  format TRD_TUROVR 14. TRD_EVENT_DT DATE9. TRD_EVENT_TM TIME5.;
  label TRD_STCK_CD="TRD_STCK_CD" TRD_PR="TRD_PR" TRD_TUROVR="TRD_TUROVR" TRD_EVENT_DT="TRD_EVENT_DT";
datalines4;
IKCQ1,1,100,24MAR2008,12:19
ALBZ1,1537,10000,24MAR2008,12:28
ALBZ1,1567,10,24MAR2008,13:13
AZAB1,683,10000,24MAR2008,12:20
AZAB1,695,10,24MAR2008,13:13
BALI1,850,9260,24MAR2008,9:14
BALI1,850,2000,24MAR2008,9:15
BALI1,850,10000,24MAR2008,9:15
BALI1,850,6000,24MAR2008,9:15
BALI1,850,10000,24MAR2008,9:29
BALI1,850,10000,24MAR2008,12:28
BALI1,850,10000,24MAR2008,12:28
BALI1,865,10,24MAR2008,13:13
BANK1,1164,10729,24MAR2008,9:38
BANK1,1148,2000,24MAR2008,11:24
BANK1,1147,1575,24MAR2008,11:24
BANK1,1147,5000,24MAR2008,12:10
BANK1,1147,3425,24MAR2008,12:10
BANK1,1141,41575,24MAR2008,12:14
BANK1,1141,8425,24MAR2008,12:14
;;;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Code inserted by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; from the .zip&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 13:27:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383672#M277054</guid>
      <dc:creator>aminkarimid</dc:creator>
      <dc:date>2017-07-28T13:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383673#M277055</link>
      <description>&lt;P&gt;Why not just use time literals in your where statement?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where TRD_EVENT_TM between '09:00't and '12:59:59't;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jul 2017 13:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383673#M277055</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-07-28T13:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383675#M277056</link>
      <description>&lt;P&gt;So I ran this code against your example data&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sampledata04;
	set sampledata03;
	where hour(TRD_EVENT_TM) between 9 and 12;
run;

proc print data=sampledata04 noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and got this result:&lt;/P&gt;
&lt;PRE&gt; TRD_                                       TRD_      TRD_
STCK_CD    TRD_PR        TRD_TUROVR     EVENT_DT    EVENT_TM

 IKCQ1         1                100    24MAR2008     12:19  
 ALBZ1      1537              10000    24MAR2008     12:28  
 AZAB1       683              10000    24MAR2008     12:20  
 BALI1       850               9260    24MAR2008      9:14  
 BALI1       850               2000    24MAR2008      9:15  
 BALI1       850              10000    24MAR2008      9:15  
 BALI1       850               6000    24MAR2008      9:15  
 BALI1       850              10000    24MAR2008      9:29  
 BALI1       850              10000    24MAR2008     12:28  
 BALI1       850              10000    24MAR2008     12:28  
 BANK1      1164              10729    24MAR2008      9:38  
 BANK1      1148               2000    24MAR2008     11:24  
 BANK1      1147               1575    24MAR2008     11:24  
 BANK1      1147               5000    24MAR2008     12:10  
 BANK1      1147               3425    24MAR2008     12:10  
 BANK1      1141              41575    24MAR2008     12:14  
 BANK1      1141               8425    24MAR2008     12:14  
&lt;/PRE&gt;
&lt;P&gt;Which of these observations should not be included in the result?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 13:31:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383675#M277056</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-28T13:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383687#M277057</link>
      <description>I want to bind TRD_EVENT_TM as the time variable between 9:00 till 12:00. So, all observations which are not in this range must be omitted from the dataset.</description>
      <pubDate>Fri, 28 Jul 2017 13:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383687#M277057</guid>
      <dc:creator>aminkarimid</dc:creator>
      <dc:date>2017-07-28T13:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383694#M277058</link>
      <description>I want to bind TRD_EVENT_TM as the time variable between 9:00 till 12:00. So, all observations which are not in this range must be omitted from the dataset.&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 28 Jul 2017 13:49:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383694#M277058</guid>
      <dc:creator>aminkarimid</dc:creator>
      <dc:date>2017-07-28T13:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383696#M277059</link>
      <description>Then your code was fine, but replace the "12" with "11" so it will include all the timestamps up to 11:59:59</description>
      <pubDate>Fri, 28 Jul 2017 13:52:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383696#M277059</guid>
      <dc:creator>WesleyD</dc:creator>
      <dc:date>2017-07-28T13:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383697#M277060</link>
      <description>Use time literals.&lt;BR /&gt;Where MYVAR between '09:00't and '12:00't&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Jul 2017 13:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383697#M277060</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-07-28T13:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383704#M277061</link>
      <description>What is difference between "Where MYVAR between '09:00't and '12:00't" and What you said. Because, I have different results from them.&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 28 Jul 2017 14:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383704#M277061</guid>
      <dc:creator>aminkarimid</dc:creator>
      <dc:date>2017-07-28T14:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383776#M277062</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138303"&gt;@aminkarimid&lt;/a&gt; wrote:&lt;BR /&gt;What is difference between "Where MYVAR between '09:00't and '12:00't" and What you said. Because, I have different results from them.&lt;BR /&gt;Thanks&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There's been a lot of code suggestions in this thread. Please post the two versions that give you different results.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 15:50:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383776#M277062</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-28T15:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "where statement" for bounding time?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383785#M277063</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138303"&gt;@aminkarimid&lt;/a&gt; wrote:&lt;BR /&gt;What is difference between "Where MYVAR between '09:00't and '12:00't" and What you said. Because, I have different results from them.&lt;BR /&gt;Thanks&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;HOUR(time) = 12 is true for 12:01, 12:02, 12:03 ... 12:59&lt;/P&gt;
&lt;P&gt;between '09:00't and '12:00't will EXCLUDE minutes past 12:00&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 16:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-where-statement-quot-for-bounding-time/m-p/383785#M277063</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-07-28T16:00:51Z</dc:date>
    </item>
  </channel>
</rss>

