<?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: Sequencing Website Data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sequencing-Website-Data/m-p/94670#M19967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A hash variety:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; one;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; member site start :&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 9pt;"&gt;anydtdtm19.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obs = _n_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 6747&amp;nbsp; 01JUN2012:05:32:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 6747&amp;nbsp; 01JUN2012:05:32:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 6990&amp;nbsp; 01JUN2012:05:32:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 6747&amp;nbsp; 01JUN2012:05:39:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 6747&amp;nbsp; 01JUN2012:07:28:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;3304 6747&amp;nbsp; 01JUN2012:07:28:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 7254&amp;nbsp; 01JUN2012:07:28:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 47814 01JUN2012:07:28:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 6747&amp;nbsp; 01JUN2012:07:29:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 6747&amp;nbsp; 01JUN2012:07:29:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;3304 6990&amp;nbsp; 01JUN2012:07:29:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 7254&amp;nbsp; 01JUN2012:07:29:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 7254&amp;nbsp; 01JUN2012:07:30:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 6747&amp;nbsp; 01JUN2012:08:15:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 6747&amp;nbsp; 01JUN2012:08:15:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 6748&amp;nbsp; 01JUN2012:08:16:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 6748&amp;nbsp; 01JUN2012:08:16:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;5569 6747&amp;nbsp; 01JUN2012:09:14:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 6747&amp;nbsp; 01JUN2012:09:14:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 6747&amp;nbsp; 01JUN2012:09:14:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;2&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; one;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; sequence &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;8&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;declare&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; hash seq(ordered:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"a"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc1=seq.defineKey(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"member"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"site"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"start"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;rc2=seq.defineData(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"sequence"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc3=seq.defineDone();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;declare&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; hash want(ordered:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"a"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc1=want.defineKey(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"obs"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"member"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"site"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"start"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc2=want.defineData(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"obs"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"member"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"site"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"start"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"sequence"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc3=want.defineDone();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sequence=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;do&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;until&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;(done1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; one end=done1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; member site &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;notsorted&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc1=seq.add();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=first.site;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; first.member &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; sequence=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sequence=sequence+((rc1=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;)*x);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc2=seq.replace();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; missing(of _all_);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;do&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;until&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;(done2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; one end=done2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; seq.find();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; want.add();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; want.output(dataset:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"sequenced"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;stop&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2012 19:10:04 GMT</pubDate>
    <dc:creator>joehinson</dc:creator>
    <dc:date>2012-08-16T19:10:04Z</dc:date>
    <item>
      <title>Sequencing Website Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sequencing-Website-Data/m-p/94666#M19963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm working with website tracking data. and my dataset looks like the following:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 454px;" summary="Page Layout"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" width="105"&gt;&lt;STRONG&gt;Member ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="76"&gt;&lt;STRONG&gt;Website ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="133"&gt;&lt;STRONG&gt;Website URL&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="140"&gt;&lt;STRONG&gt;Page View Start Time&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="140"&gt;01JUN2012:05:32:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:05:32:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6990&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;en.wikipedia.org&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:05:32:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:05:39:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:28:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:28:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;7254&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;slickdeals.net&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:28:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;47814&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.wpxi.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:28:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:29:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:29:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6990&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;en.wikipedia.org&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:29:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;7254&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;slickdeals.net&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:29:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;7254&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;slickdeals.net&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:30:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:08:15:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:08:15:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6748&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.facebook.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:08:16:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6748&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.facebook.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:08:16:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:09:14:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:09:14:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:09:14:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a data set that looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 518px;" summary="Page Layout"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" width="105"&gt;&lt;STRONG&gt;Member ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="76"&gt;&lt;STRONG&gt;Website ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="133"&gt;&lt;STRONG&gt;Website URL&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="140"&gt;&lt;STRONG&gt;Page View Start Time&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Sequence&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="140"&gt;01JUN2012:05:32:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:05:32:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6990&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;en.wikipedia.org&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:05:32:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:05:39:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:28:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:28:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;7254&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;slickdeals.net&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:28:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;47814&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.wpxi.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:28:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:29:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:29:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;3304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6990&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;en.wikipedia.org&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:29:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;7254&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;slickdeals.net&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:29:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;7254&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;slickdeals.net&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:07:30:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:08:15:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:08:15:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6748&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.facebook.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:08:16:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6748&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.facebook.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:08:16:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:09:14:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:09:14:00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;" width="64"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="21" style="border-top: none;" width="105"&gt;5569&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="76"&gt;6747&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="133"&gt;www.google.com&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="140"&gt;01JUN2012:09:14:00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="64"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where sequence is a counter that resets for every member_id website_id page_view_start_time combination, but does not get reset if the start time changes within the same website.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the future i would like to build in a a control that would allow me to say if you spent more than 20 minutes idle on google and then clicked on google again then that would reset the sequence counter back to 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a good one! I've been messing around with first. last. processing all morning but can't quite get the results i want.&lt;/P&gt;&lt;P&gt;Thank you all in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 15:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sequencing-Website-Data/m-p/94666#M19963</guid>
      <dc:creator>SAShole</dc:creator>
      <dc:date>2012-08-15T15:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sequencing Website Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sequencing-Website-Data/m-p/94667#M19964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeffrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't include the time check as you indicated that was something you wanted to include later but, for your initial problem, how about something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by member_ID website_url notsorted;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if first.member_ID then Sequence=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if first.member_ID or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Website_URL ne lag(Website_URL)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; then Sequence+1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 15:30:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sequencing-Website-Data/m-p/94667#M19964</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-08-15T15:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sequencing Website Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sequencing-Website-Data/m-p/94668#M19965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using similar tools to what Art suggested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; by member_ID website_ID notsorted;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; prior_time = lag(page_start_time);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if first.website_ID=0 and (calculated-comparison) then sequence=1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming&amp;nbsp; you know how to use the combination of page_start_time and prior_time to make the proper comparison to see if 20 minutes have passed.&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>Wed, 15 Aug 2012 15:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sequencing-Website-Data/m-p/94668#M19965</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-08-15T15:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sequencing Website Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sequencing-Website-Data/m-p/94669#M19966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like a &lt;A href="http://devenezia.com/papers/other-authors/sesug-2002/TheMagnificentDO.pdf"&gt;DoW&lt;/A&gt; in a case like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Consolas, Courier New; font-size: 90%; line-height: 1.1;"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;/* test data */&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080;"&gt;data&lt;/STRONG&gt;&lt;SPAN&gt; one;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;input&lt;/SPAN&gt;&lt;SPAN&gt; member site start :&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;anydtdtm19.&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obs = _n_;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;cards&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 3304&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6747&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:05:32:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 3304&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6747&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:05:32:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 3304&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6990&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:05:32:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 3304&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6747&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:05:39:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 3304&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6747&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:07:28:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 3304&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6747&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:07:28:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 3304&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;7254&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:07:28:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 3304&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;47814&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:07:28:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 3304&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6747&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:07:29:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 3304&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6747&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:07:29:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 3304&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6990&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:07:29:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 5569&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;7254&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:07:29:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 5569&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;7254&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:07:30:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 5569&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6747&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:08:15:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 5569&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6747&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:08:15:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 5569&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6748&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:08:16:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 5569&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6748&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:08:16:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 5569&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6747&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:09:14:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 5569&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6747&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:09:14:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 5569&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6747&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JUN2012:09:14:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 1111 1111&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;01JAN2013:01:00:00&amp;nbsp; &amp;lt;- new data&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 1111 1111&amp;nbsp; 01JAN2013:01:20:01&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 1111 1111&amp;nbsp; 01JAN2013:01:21:00&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; 1111 2222&amp;nbsp; 01JAN2013:01:41:01&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080;"&gt;run&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;/* create sequence */&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;%let&lt;/SPAN&gt;&lt;SPAN&gt; timeout = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;%sysevalf&lt;/SPAN&gt;&lt;SPAN&gt;(20*60); &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;/* 20 minutes */&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080;"&gt;data&lt;/STRONG&gt;&lt;SPAN&gt; two;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; seq = &lt;/SPAN&gt;&lt;STRONG style="color: #008080;"&gt;0&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;/* DoW */&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;do&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;until&lt;/SPAN&gt;&lt;SPAN&gt; (last.member);&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;set&lt;/SPAN&gt;&lt;SPAN&gt; one;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;by&lt;/SPAN&gt;&lt;SPAN&gt; member site &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;notsorted&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;drop&lt;/SPAN&gt;&lt;SPAN&gt; lagSite difStart;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lagSite = lag(site);&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; difStart = dif(start);&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; seq + (first.site | (lagSite=site &amp;amp; difStart&amp;gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;timeout.&lt;/SPAN&gt;&lt;SPAN&gt;));&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;output&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080;"&gt;run&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080;"&gt;proc&lt;/STRONG&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #000080;"&gt;print&lt;/STRONG&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;=two &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;noobs&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; member site start seq;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;format&lt;/SPAN&gt;&lt;SPAN&gt; start &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;datetime.&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080;"&gt;run&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;/* on lst&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; member&amp;nbsp;&amp;nbsp;&amp;nbsp; site&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; start&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; seq&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 3304&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6747&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:05:32:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 3304&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6747&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:05:32:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 3304&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6990&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:05:32:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 3304&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6747&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:05:39:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 3304&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6747&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:07:28:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 3304&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6747&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:07:28:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 3304&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7254&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:07:28:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 3304&amp;nbsp;&amp;nbsp;&amp;nbsp; 47814&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:07:28:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 3304&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6747&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:07:29:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 3304&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6747&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:07:29:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 3304&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6990&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:07:29:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 5569&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7254&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:07:29:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 5569&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7254&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:07:30:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 5569&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6747&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:08:15:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 5569&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6747&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:08:15:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 5569&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6748&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:08:16:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 5569&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6748&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:08:16:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 5569&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6747&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:09:14:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 5569&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6747&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:09:14:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 5569&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6747&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JUN12:09:14:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 1111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1111&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JAN13:01:00:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 1111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1111&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JAN13:01:20:01&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 1111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1111&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JAN13:01:21:00&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; 1111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2222&amp;nbsp;&amp;nbsp;&amp;nbsp; 01JAN13:01:41:01&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 21:34:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sequencing-Website-Data/m-p/94669#M19966</guid>
      <dc:creator>chang_y_chung_hotmail_com</dc:creator>
      <dc:date>2012-08-15T21:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sequencing Website Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sequencing-Website-Data/m-p/94670#M19967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A hash variety:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; one;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; member site start :&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 9pt;"&gt;anydtdtm19.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obs = _n_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 6747&amp;nbsp; 01JUN2012:05:32:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 6747&amp;nbsp; 01JUN2012:05:32:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 6990&amp;nbsp; 01JUN2012:05:32:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 6747&amp;nbsp; 01JUN2012:05:39:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 6747&amp;nbsp; 01JUN2012:07:28:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;3304 6747&amp;nbsp; 01JUN2012:07:28:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 7254&amp;nbsp; 01JUN2012:07:28:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 47814 01JUN2012:07:28:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 6747&amp;nbsp; 01JUN2012:07:29:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 3304 6747&amp;nbsp; 01JUN2012:07:29:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;3304 6990&amp;nbsp; 01JUN2012:07:29:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 7254&amp;nbsp; 01JUN2012:07:29:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 7254&amp;nbsp; 01JUN2012:07:30:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 6747&amp;nbsp; 01JUN2012:08:15:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 6747&amp;nbsp; 01JUN2012:08:15:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 6748&amp;nbsp; 01JUN2012:08:16:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DA" style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 6748&amp;nbsp; 01JUN2012:08:16:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;5569 6747&amp;nbsp; 01JUN2012:09:14:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 6747&amp;nbsp; 01JUN2012:09:14:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 9pt;"&gt;&amp;nbsp; 5569 6747&amp;nbsp; 01JUN2012:09:14:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;2&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; one;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; sequence &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;8&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;declare&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; hash seq(ordered:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"a"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc1=seq.defineKey(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"member"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"site"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"start"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;rc2=seq.defineData(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"sequence"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc3=seq.defineDone();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;declare&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; hash want(ordered:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"a"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc1=want.defineKey(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"obs"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"member"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"site"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"start"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc2=want.defineData(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"obs"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"member"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"site"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"start"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"sequence"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc3=want.defineDone();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sequence=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;do&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;until&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;(done1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; one end=done1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; member site &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;notsorted&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc1=seq.add();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=first.site;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; first.member &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; sequence=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sequence=sequence+((rc1=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;)*x);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc2=seq.replace();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; missing(of _all_);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;do&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;until&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;(done2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; one end=done2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; seq.find();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; want.add();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; want.output(dataset:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 9pt;"&gt;"sequenced"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 9pt;"&gt;stop&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 9pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 19:10:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sequencing-Website-Data/m-p/94670#M19967</guid>
      <dc:creator>joehinson</dc:creator>
      <dc:date>2012-08-16T19:10:04Z</dc:date>
    </item>
  </channel>
</rss>

