<?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: Retaining Last Transaction byProduct Id in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144586#M11501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its the same heading. I just renamed it.&lt;/P&gt;&lt;P&gt;The output I showed last is what I am getting if I use the code you suggested. I was just showing you as a sample of the output I am getting based on&amp;nbsp; the code.&lt;/P&gt;&lt;P&gt;The output I am after is still what I mentioned in my first question. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 04:41:04 GMT</pubDate>
    <dc:creator>manojdawson</dc:creator>
    <dc:date>2014-10-28T04:41:04Z</dc:date>
    <item>
      <title>Retaining Last Transaction byProduct Id</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144582#M11497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to find when a Customer bought&amp;nbsp; a particular product last to estimate reorder days for each product. I want to retain only the latest purchase record for every product bought by CM's.&lt;/P&gt;&lt;P&gt;My current data looks like below.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 448px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" width="70"&gt;ProdRunDateKey&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;CustCode&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;OrderNumber&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;ProdCode&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="122"&gt;LongDescription&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140717&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540150&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3164650&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4211&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Ginkgo 2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140717&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540150&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3164650&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4452&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Healthy Joints&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140416&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540150&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3114334&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4211&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Ginkgo 2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140416&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540150&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3114334&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4452&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Healthy Joints&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1513&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Super B 50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1616&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Super C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2123&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Zinc Plus&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2171&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Magnesium Plus&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140522&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3132182&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1513&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Super B 50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140522&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3132182&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2123&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Zinc Plus&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140522&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3132182&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3324&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Hair Skin &amp;amp; Nails Nutrition&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140522&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3132182&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3533&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Women's Daily Vitality Multi&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So&amp;nbsp; I would want the output to look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" width="70"&gt;ProdRunDateKey&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;CustCode&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;OrderNumber&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;ProdCode&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="122"&gt;LongDescription&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140717&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540150&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3164650&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4211&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Ginkgo 2000 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140717&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540150&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3164650&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4452&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Healthy Joints &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1513&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Super B 50 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1616&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Super C &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2123&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Zinc Plus&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2171&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Magnesium Plus &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140522&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3132182&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3324&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Hair Skin &amp;amp; Nails Nutrition&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border-top: none;"&gt;20140522&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3132182&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3533&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Women's Daily Vitality Multi&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone help me with this please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 00:48:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144582#M11497</guid>
      <dc:creator>manojdawson</dc:creator>
      <dc:date>2014-10-28T00:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining Last Transaction byProduct Id</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144583#M11498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select * from have&lt;/P&gt;&lt;P&gt;group by prodcode&lt;/P&gt;&lt;P&gt;having OrderNumber=max(OrderNumber);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 01:22:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144583#M11498</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-10-28T01:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining Last Transaction byProduct Id</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144584#M11499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this does not give me the output I am looking for. Instead it gives me only the very last day in the file and the biggest order number on the day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 320px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="37" width="64"&gt;ProdRunDateKey&lt;/TD&gt;&lt;TD class="xl66" width="64"&gt;CustCode&lt;/TD&gt;&lt;TD class="xl66" width="64"&gt;OrderNumber&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;Code&lt;/TD&gt;&lt;TD class="xl68" width="64"&gt;LongDescription&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20"&gt;20141027&lt;/TD&gt;&lt;TD class="xl63"&gt;731578&lt;/TD&gt;&lt;TD class="xl63"&gt;3220164&lt;/TD&gt;&lt;TD class="xl64"&gt;1082&lt;/TD&gt;&lt;TD class="xl70"&gt;Krill Oil 500mg 30 caps&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20"&gt;20141027&lt;/TD&gt;&lt;TD class="xl63"&gt;9983&lt;/TD&gt;&lt;TD class="xl63"&gt;3220182&lt;/TD&gt;&lt;TD class="xl64"&gt;1133&lt;/TD&gt;&lt;TD class="xl70"&gt;Super Strength Cod Liver Oil&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20"&gt;20141027&lt;/TD&gt;&lt;TD class="xl63"&gt;211451&lt;/TD&gt;&lt;TD class="xl63"&gt;3220582&lt;/TD&gt;&lt;TD class="xl64"&gt;1152&lt;/TD&gt;&lt;TD class="xl70"&gt;Natural Vitamin E 500IU&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20"&gt;20141027&lt;/TD&gt;&lt;TD class="xl63"&gt;277920&lt;/TD&gt;&lt;TD class="xl63"&gt;3220593&lt;/TD&gt;&lt;TD class="xl64"&gt;1154&lt;/TD&gt;&lt;TD class="xl70"&gt;Vitamin D3 1000IU&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20"&gt;20141027&lt;/TD&gt;&lt;TD class="xl63"&gt;672016&lt;/TD&gt;&lt;TD class="xl63"&gt;3220643&lt;/TD&gt;&lt;TD class="xl64"&gt;1177&lt;/TD&gt;&lt;TD class="xl70"&gt;Fish Oil 1000mg&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20"&gt;20141027&lt;/TD&gt;&lt;TD class="xl63"&gt;59438&lt;/TD&gt;&lt;TD class="xl63"&gt;3220571&lt;/TD&gt;&lt;TD class="xl64"&gt;1178&lt;/TD&gt;&lt;TD class="xl70"&gt;Enteric Coated Fish Oil 1000mg&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 04:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144584#M11499</guid>
      <dc:creator>manojdawson</dc:creator>
      <dc:date>2014-10-28T04:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining Last Transaction byProduct Id</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144585#M11500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not the same output you showed in question. What is the difference between ProdCode and Code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 04:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144585#M11500</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-10-28T04:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining Last Transaction byProduct Id</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144586#M11501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its the same heading. I just renamed it.&lt;/P&gt;&lt;P&gt;The output I showed last is what I am getting if I use the code you suggested. I was just showing you as a sample of the output I am getting based on&amp;nbsp; the code.&lt;/P&gt;&lt;P&gt;The output I am after is still what I mentioned in my first question. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 04:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144586#M11501</guid>
      <dc:creator>manojdawson</dc:creator>
      <dc:date>2014-10-28T04:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining Last Transaction byProduct Id</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144587#M11502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about if you apply suggested code on the data provided in the question? Are you getting the desired output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 05:06:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144587#M11502</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-10-28T05:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining Last Transaction byProduct Id</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144588#M11503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It still only shows me the same output as shown. It shows products bought yesterday with the max order number (i.e. the very last order placed yesterday for every SKU(productCode))&lt;/P&gt;&lt;P&gt;It seems to be ignoring CustCode.&lt;/P&gt;&lt;P&gt;Maybe If I try and explain more clearly you will be able to help&lt;/P&gt;&lt;P&gt;So What I am trying to achieve is predict when someone is likely to run out of a particular product&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" style="border: 0px solid black;" width="70"&gt;ProdRunDateKey&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none;" width="64"&gt;CustCode&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none;" width="64"&gt;OrderNumber&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none;" width="64"&gt;ProdCode&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none;" width="122"&gt;LongDescription&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140717&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540150&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3164650&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;4211&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Ginkgo 2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140717&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540150&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3164650&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;4452&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Healthy Joints&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140416&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540150&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3114334&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;4211&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Ginkgo 2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140416&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540150&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3114334&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;4452&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Healthy Joints&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;1513&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Super B 50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;1616&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Super C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;2123&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Zinc Plus&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;2171&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Magnesium Plus&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140522&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3132182&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;1513&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Super B 50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140522&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3132182&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;2123&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Zinc Plus&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140522&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3132182&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3324&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Hair Skin &amp;amp; Nails Nutrition&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140522&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3132182&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3533&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Women's Daily Vitality Multi&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;In the above data set, Customer - 540150 bought Gingko &amp;amp; Healthy Joints twice. But in the output I would like to see only the very last Gingko &amp;amp; Healthy Joints they bought (i.e. Order Number 3164650). So Order 3114334 should be ignored&lt;/P&gt;&lt;P&gt;Similarly for Customer - 540258, I would like to get Super B 50, Super C, Zinc, Magnesium, Hair Skin &amp;amp; Nails and Women's Daily in the output. So it ignores when the previous time the first 4 products were bought and only retains the very last time a SKU was bought , thereby taking 4 SKU's from the last order and 2 SKU's from&amp;nbsp; the previous order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So&amp;nbsp; I would want the output to look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" style="border: 0px solid black;" width="70"&gt;ProdRunDateKey&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none;" width="64"&gt;CustCode&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none;" width="64"&gt;OrderNumber&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none;" width="64"&gt;ProdCode&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none;" width="122"&gt;LongDescription&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140717&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540150&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3164650&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;4211&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Ginkgo 2000 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140717&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540150&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3164650&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;4452&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Healthy Joints &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;1513&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Super B 50 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;1616&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Super C &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;2123&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Zinc Plus&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140819&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3182987&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;2171&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Magnesium Plus &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140522&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3132182&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3324&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Hair Skin &amp;amp; Nails Nutrition&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="19" style="border: 0px solid black; border-top: none;"&gt;20140522&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;540258&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3132182&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;3533&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;Women's Daily Vitality Multi&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 05:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144588#M11503</guid>
      <dc:creator>manojdawson</dc:creator>
      <dc:date>2014-10-28T05:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining Last Transaction byProduct Id</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144589#M11504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=have;&lt;/P&gt;&lt;P&gt;by CustCode ProdCode descending ProdRunDateKey;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;by CustCode ProdCode;&lt;/P&gt;&lt;P&gt;if first.ProdCode;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 07:18:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144589#M11504</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-10-28T07:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining Last Transaction byProduct Id</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144590#M11505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could it be that you simply need to add "ProdCode" to &lt;A _jive_internal="true" href="https://communities.sas.com/mailto:stat@sas's/"&gt;stat@sas's&lt;/A&gt; group by statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Have;&lt;BR /&gt;&amp;nbsp; Input @1 ProdRunDateKey 8. @10 CustCode 6. @17 OrderNumber 7. @25 ProdCode 4. @30 LongDescription $50.;&lt;BR /&gt;&amp;nbsp; Datalines;&lt;BR /&gt;20140717 540150 3164650 4211 Ginkgo 2000&lt;BR /&gt;20140717 540150 3164650 4452 Healthy Joints&lt;BR /&gt;20140416 540150 3114334 4211 Ginkgo 2000&lt;BR /&gt;20140416 540150 3114334 4452 Healthy Joints&lt;BR /&gt;20140819 540258 3182987 1513 Super B 50&lt;BR /&gt;20140819 540258 3182987 1616 Super C&lt;BR /&gt;20140819 540258 3182987 2123 Zinc Plus&lt;BR /&gt;20140819 540258 3182987 2171 Magnesium Plus&lt;BR /&gt;20140522 540258 3132182 1513 Super B 50&lt;BR /&gt;20140522 540258 3132182 2123 Zinc Plus&lt;BR /&gt;20140522 540258 3132182 3324 Hair Skin &amp;amp; Nails Nutrition&lt;BR /&gt;20140522 540258 3132182 3533 Women's Daily Vitality Multi&lt;BR /&gt;;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;Proc SQL NoPrint;&lt;BR /&gt;&amp;nbsp; Create Table Want As &lt;BR /&gt;&amp;nbsp; Select * From Have&lt;BR /&gt;&amp;nbsp; Group By CustCode, ProdCode&lt;BR /&gt;&amp;nbsp; Having OrderNumber = Max(OrderNumber);&lt;BR /&gt;Quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 07:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144590#M11505</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2014-10-28T07:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining Last Transaction byProduct Id</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144591#M11506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi User24Feb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help. Yes it was just a tweak to the code and it worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 22:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144591#M11506</guid>
      <dc:creator>manojdawson</dc:creator>
      <dc:date>2014-10-28T22:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining Last Transaction byProduct Id</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144592#M11507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help stat@sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 22:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Retaining-Last-Transaction-byProduct-Id/m-p/144592#M11507</guid>
      <dc:creator>manojdawson</dc:creator>
      <dc:date>2014-10-28T22:30:49Z</dc:date>
    </item>
  </channel>
</rss>

