<?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 can I measure the exact time from data with SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Re-How-can-I-measure-the-exact-time-from-data-with-SAS/m-p/112064#M5919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After your sort I would try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=WiFi_status;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class userid;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by connected notsorted;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var time;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output out=usertime max= min= range=/autoname;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output dataset should have a record for each contiguous period of time connected and not connected. The range is what you want but the units aren't going to be obvious, the max and min will show per period as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2013 15:57:43 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2013-01-02T15:57:43Z</dc:date>
    <item>
      <title>Re: How can I measure the exact time from data with SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-How-can-I-measure-the-exact-time-from-data-with-SAS/m-p/112062#M5917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My name is woo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I'm having problem with my research so I need some tips from SAS professional who are familliar with this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really want to measure &lt;STRONG style="font-size: 14pt;"&gt;exact time of Wifi Use. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And data is as follows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connected 0 represents Wifi is disconnected&lt;/P&gt;&lt;P&gt;and 1 represents Wifi is connected&lt;/P&gt;&lt;P&gt;&lt;IMG alt="prob1.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2874_prob1.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first, I thought it was very easy and I wrote some code 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; Wifi_status; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&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;INFILE&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="background: white; color: purple; font-family: 굴림체; mso-bidi-font-size: 10.0pt; mso-hansi-font-family: 'MS Sans Serif'; mso-bidi-font-family: 굴림체; mso-font-kerning: 0pt;"&gt;"D:\research\Wifi_Status_august.csv"&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;dlm&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;SPAN lang="EN-US" style="background: white; color: purple; 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;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;LRECL&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: 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;300&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp; &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;TRUNCOVER&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;firstobs&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: 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;2&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 align="left" style="text-align: left;"&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;INPUT&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; UserId :&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;$20.&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; Clientkey :&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;$1.&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;anydtdtm19.&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; Connected IsOpen ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&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;keep&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; Userid Time Connected;&lt;/SPAN&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;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 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; &lt;/SPAN&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;Proc&lt;/SPAN&gt;&lt;/STRONG&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;sort&lt;/SPAN&gt;&lt;/STRONG&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;data&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;=Wifi_status; &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;by&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; userid time; &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 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; Wifi_status1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&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; Wifi_status; &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;if&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; connected=&lt;/SPAN&gt;&lt;STRONG&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;1&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 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;Starttime=Time;&lt;/SPAN&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;connected1=connected;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&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;keep&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; userid Starttime&lt;BR /&gt;connected1; &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 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;proc&lt;/SPAN&gt;&lt;/STRONG&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;sort&lt;/SPAN&gt;&lt;/STRONG&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;data&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;=Wifi_status1; &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;by&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; userid Starttime; &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 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; Wifi_status2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&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; Wifi_status; &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;if&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; connected=&lt;/SPAN&gt;&lt;STRONG&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;0&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 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;Endtime=Time;&lt;/SPAN&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;connected0=connected;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&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;keep&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; userid Endtime&lt;BR /&gt;connected0; &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 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;proc&lt;/SPAN&gt;&lt;/STRONG&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;sort&lt;/SPAN&gt;&lt;/STRONG&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;data&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;=Wifi_status2; &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;by&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; userid Endtime; &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 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; &lt;/SPAN&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; Wifi_status0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&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;merge&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; Wifi_status1 Wifi_status2;&lt;/SPAN&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;Wifi_sec=endtime-starttime;&lt;/SPAN&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;Wifi_min=(Wifi_sec)/&lt;/SPAN&gt;&lt;STRONG&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;60&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 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;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;&lt;/P&gt;&lt;P&gt;But, there's some mistakes or erros in the data like sequencing 0000 or 111.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, My result is totally crabbed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pro2.png" class="jive-image-thumbnail jive-image" height="252" src="https://communities.sas.com/legacyfs/online/2875_pro2.png" width="638" /&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;I want to leave out some faults in my data How can I leave them out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me some your generous tips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 12:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-How-can-I-measure-the-exact-time-from-data-with-SAS/m-p/112062#M5917</guid>
      <dc:creator>Yondori</dc:creator>
      <dc:date>2013-01-02T12:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I measure the exact time from data with SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-How-can-I-measure-the-exact-time-from-data-with-SAS/m-p/112063#M5918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Some sample data to work with would help,&lt;/P&gt;&lt;P&gt;but I would first suggest that instead of taking the variable "TIME" as is, I would first strip the date out of the "TIME" variable, thus obtaining the hour and minutes.&lt;/P&gt;&lt;P&gt;So, say, you have time = 2012-08-01 8:49, what you really want is a way to strip the time from the date. &lt;/P&gt;&lt;P&gt;BUT&lt;/P&gt;&lt;P&gt;you need to also keep a count for the date (so if one is connected for 2 days and four hours, you actually count the days as well).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide some sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 14:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-How-can-I-measure-the-exact-time-from-data-with-SAS/m-p/112063#M5918</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-01-02T14:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I measure the exact time from data with SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-How-can-I-measure-the-exact-time-from-data-with-SAS/m-p/112064#M5919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After your sort I would try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=WiFi_status;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class userid;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by connected notsorted;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var time;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output out=usertime max= min= range=/autoname;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output dataset should have a record for each contiguous period of time connected and not connected. The range is what you want but the units aren't going to be obvious, the max and min will show per period as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 15:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-How-can-I-measure-the-exact-time-from-data-with-SAS/m-p/112064#M5919</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-01-02T15:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I measure the exact time from data with SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-How-can-I-measure-the-exact-time-from-data-with-SAS/m-p/112065#M5920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed your code and SAS told me "Warning : Obsessive Print Size! "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the advice but, it won't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 01:20:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-How-can-I-measure-the-exact-time-from-data-with-SAS/m-p/112065#M5920</guid>
      <dc:creator>Yondori</dc:creator>
      <dc:date>2013-01-03T01:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I measure the exact time from data with SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-How-can-I-measure-the-exact-time-from-data-with-SAS/m-p/112066#M5921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, How can I extract the days from My 'Time' Variable..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps. I can email you sample file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 01:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-How-can-I-measure-the-exact-time-from-data-with-SAS/m-p/112066#M5921</guid>
      <dc:creator>Yondori</dc:creator>
      <dc:date>2013-01-03T01:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I measure the exact time from data with SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-How-can-I-measure-the-exact-time-from-data-with-SAS/m-p/112067#M5922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;You can use the DAY function from SAS.&lt;/P&gt;&lt;P&gt;day_part = day(time_variable);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could attach a sample data (say 10 observations max, and make sure you de-identify the data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 01:45:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-How-can-I-measure-the-exact-time-from-data-with-SAS/m-p/112067#M5922</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-01-03T01:45:05Z</dc:date>
    </item>
  </channel>
</rss>

