<?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 Query Question in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Time-Query-Question/m-p/112919#M5944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi I always appreciate this community and thank you for users who gave me generous tips on my SAS problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a little problem on my SAS coding and I want your generous advice on this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset as follows..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image-thumbnail jive-image" height="227" src="https://communities.sas.com/legacyfs/online/2880_1.png" width="803" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to see the data which is recorded BETWEEN 6:30 AM ~ 9:30 AM (Commuting Time).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I put new variable as 'Time' like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;Data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; app_total0; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; app_total; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;time=starttime; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;format&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; time &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;timeampm.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and now the time variables are shown in the dataset as I expected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.png" class="jive-image-thumbnail jive-image" height="220" src="https://communities.sas.com/legacyfs/online/2881_2.png" width="836" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, the problem is that I don't know how to query the data which is recorded between 6:30 am ~ 9:30 am ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give me some tips on this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2013 12:53:57 GMT</pubDate>
    <dc:creator>Yondori</dc:creator>
    <dc:date>2013-01-03T12:53:57Z</dc:date>
    <item>
      <title>Time Query Question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Time-Query-Question/m-p/112919#M5944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi I always appreciate this community and thank you for users who gave me generous tips on my SAS problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a little problem on my SAS coding and I want your generous advice on this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset as follows..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image-thumbnail jive-image" height="227" src="https://communities.sas.com/legacyfs/online/2880_1.png" width="803" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to see the data which is recorded BETWEEN 6:30 AM ~ 9:30 AM (Commuting Time).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I put new variable as 'Time' like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;Data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; app_total0; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; app_total; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;time=starttime; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;format&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt; time &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;timeampm.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and now the time variables are shown in the dataset as I expected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.png" class="jive-image-thumbnail jive-image" height="220" src="https://communities.sas.com/legacyfs/online/2881_2.png" width="836" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, the problem is that I don't know how to query the data which is recorded between 6:30 am ~ 9:30 am ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give me some tips on this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 12:53:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Time-Query-Question/m-p/112919#M5944</guid>
      <dc:creator>Yondori</dc:creator>
      <dc:date>2013-01-03T12:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Time Query Question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Time-Query-Question/m-p/112920#M5945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;time = timepart(StartTime);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if time &amp;gt;= '06:30:00't and time &amp;lt;= '09:30:00't;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PG&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 13:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Time-Query-Question/m-p/112920#M5945</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-01-03T13:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Time Query Question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Time-Query-Question/m-p/112921#M5946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a bunch~!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 00:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Time-Query-Question/m-p/112921#M5946</guid>
      <dc:creator>Yondori</dc:creator>
      <dc:date>2013-01-04T00:45:24Z</dc:date>
    </item>
  </channel>
</rss>

