<?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: Processing method in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165811#M31975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should post some example data and expected results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Aug 2014 20:58:50 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2014-08-18T20:58:50Z</dc:date>
    <item>
      <title>Processing method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165810#M31974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone written efficient code for something similar to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset containing&amp;nbsp; timestamp ( SAS datetime) ,&amp;nbsp; ID1 and ID2.&amp;nbsp;&amp;nbsp; Would like to calculate the number of distinct ID2's observed for ID1 for each observation within a certain timeframe.&amp;nbsp; So for each observation, I have to count the distinct ID2's ( not including the current observation ) that occurred within say 7 days ( to the second ) for the ID1 on the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 17:02:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165810#M31974</guid>
      <dc:creator>todd8325</dc:creator>
      <dc:date>2014-08-18T17:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Processing method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165811#M31975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should post some example data and expected results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 20:58:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165811#M31975</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-08-18T20:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Processing method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165812#M31976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm going to move your post to a community where you may get more attention.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 13:25:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165812#M31976</guid>
      <dc:creator>reneeharper</dc:creator>
      <dc:date>2014-08-20T13:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Processing method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165813#M31977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is "efficient code"? Is this about not using a lot of lines of code, or code which is easy to understand and maintain or is this code which performs well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give us always the SAS version and the OS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with &lt;A __default_attr="260198" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;: Could you please provide some representative sample data (a data step creating such sample data) and then tell us how the result should look like?&lt;/P&gt;&lt;P&gt;If it is about performance then please tell us also what volumes we're dealing with, how often this needs to run etc. - and if it is "big data" then we would also need to understand your environment (memory available, I/0, is this a grid environment, ....).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 14:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165813#M31977</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-08-20T14:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Processing method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165814#M31978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am dealing with big data ( and sensitive data ) , so I can't post any actual data here, running 9.3 on Solaris.&amp;nbsp;&amp;nbsp; I think I have come up with a solution that works, but I wanted to see if this was a problem that someone had already solved previously, and a more compact solution was available.&amp;nbsp; Sample data would be something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DTTIME&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7D_COUNT&lt;BR /&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03aug2014:11:52:57&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03aug2014:13:48:47&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10aug2014:11:44:58&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10aug2014:13:20:51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Todd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 14:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165814#M31978</guid>
      <dc:creator>todd8325</dc:creator>
      <dc:date>2014-08-20T14:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Processing method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165815#M31979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your source data in SAS tables or a data base. And if it's a data base: Which one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's SAS tables: Can we assume that you're data is pre-sorted like in your data sample? Or at least that for the same ID dates are in sequence (even if there are records in-between from other ID's)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 22:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165815#M31979</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-08-20T22:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Processing method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165816#M31980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like a readmission problem, though the exact business context may different. &lt;/P&gt;&lt;P&gt;Hopefully the appropriate term may at least help you narrow down solutions. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 22:03:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165816#M31980</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-08-20T22:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Processing method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165817#M31981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same question as Patrick as you set some requirements mentioning "big data". &lt;BR /&gt;- How many id1's do you have. Within that, how many id2's &lt;/P&gt;&lt;P&gt;- How big is this dataset.&lt;/P&gt;&lt;P&gt;- Is it ordered&amp;nbsp; id1 id2 date? can it get ordered (sorted) seen as a stream &lt;BR /&gt;- What is you machine capacity&amp;nbsp; memory processing&amp;nbsp; dasd.&lt;/P&gt;&lt;P&gt;- Which SAS version are you using (9.3&amp;nbsp; 9,4 or an old one like 9.1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those are the things for choosing memory based processing (hash) or batch sequential or indexed data. &lt;/P&gt;&lt;P&gt;How fast should the processing be. order of seconds-minutes hours or days?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The first impression would be using two record pointers with a dataset when this dataset is sorted like this and is a SAS dataset.&lt;/P&gt;&lt;P&gt;In that case it is one pass sequential access.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 04:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Processing-method/m-p/165817#M31981</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-21T04:59:19Z</dc:date>
    </item>
  </channel>
</rss>

