<?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: Remove before sales in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Remove-before-sales/m-p/822177#M324641</link>
    <description>&lt;P&gt;I think this explanation needs to be re-written for clarity. I think your example data set needs to be augmented with examples that meet the criteria you are discussing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;i need to remove these obs for each ItemID with bought_date that is after ItemSold date and keep only these with indicatorsold =1 or indicatorsold =0 and bought date before ItemSold date.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, you don't have any examples in the data with bought_date that is after sold_date. Next, your instructions say what to do with bought_date after sold_date, and also what to do if bought_date is before sold_date, but your data has examples where bought_date is equal to sold_date (it's not after and it's not before) and so we don't know what should be done in that case.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2022 23:25:14 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-07-07T23:25:14Z</dc:date>
    <item>
      <title>Remove before sales</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-before-sales/m-p/822175#M324639</link>
      <description>Hi ,&lt;BR /&gt;I have a dataset like this:&lt;BR /&gt;ItemID sold_Date Bought_Date Indicator_Sold ;&lt;BR /&gt;1      .                      07/01/2019   0&lt;BR /&gt;1      .                      08/02/2019   0&lt;BR /&gt;1    06/01/2019  06/01/2019    1&lt;BR /&gt;1     .                      05/01/2019    0&lt;BR /&gt;1     .                      04/01/2019    0&lt;BR /&gt;2    03/31/2019  03/31/2019     1&lt;BR /&gt;2     .                      02/01/2019     0&lt;BR /&gt;........................................................&lt;BR /&gt;In this dataset I need to do two tasks:&lt;BR /&gt;1.i need to remove these obs for each ItemID  with bought_date that is after ItemSold date and keep only these with   indicatorsold =1 or indicatorsold =0 and bought date before ItemSold date.&lt;BR /&gt;2.After those obs above are removed I need to create an index count, for instance for itemID 1 it will have 1,2 3,&lt;BR /&gt;So higher the count it means more back in time.&lt;BR /&gt;I appreciate your help.</description>
      <pubDate>Thu, 07 Jul 2022 22:56:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-before-sales/m-p/822175#M324639</guid>
      <dc:creator>sascode</dc:creator>
      <dc:date>2022-07-07T22:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove before sales</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-before-sales/m-p/822177#M324641</link>
      <description>&lt;P&gt;I think this explanation needs to be re-written for clarity. I think your example data set needs to be augmented with examples that meet the criteria you are discussing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;i need to remove these obs for each ItemID with bought_date that is after ItemSold date and keep only these with indicatorsold =1 or indicatorsold =0 and bought date before ItemSold date.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, you don't have any examples in the data with bought_date that is after sold_date. Next, your instructions say what to do with bought_date after sold_date, and also what to do if bought_date is before sold_date, but your data has examples where bought_date is equal to sold_date (it's not after and it's not before) and so we don't know what should be done in that case.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 23:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-before-sales/m-p/822177#M324641</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-07T23:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Remove before sales</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-before-sales/m-p/822178#M324642</link>
      <description>I do understand data doesn't make sense with reality, however,  I tried to ask for help based on provided variables and rows,&lt;BR /&gt;Thank you.</description>
      <pubDate>Thu, 07 Jul 2022 23:40:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-before-sales/m-p/822178#M324642</guid>
      <dc:creator>sascode</dc:creator>
      <dc:date>2022-07-07T23:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Remove before sales</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-before-sales/m-p/822223#M324668</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215702"&gt;@sascode&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I do understand data doesn't make sense with reality, however, I tried to ask for help based on provided variables and rows,&lt;BR /&gt;Thank you.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So does this mean you are not going to re-write the explanation to make it more clear what you want?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 09:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-before-sales/m-p/822223#M324668</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-08T09:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remove before sales</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-before-sales/m-p/822241#M324678</link>
      <description>&lt;BR /&gt;I was able to solve using another method .&lt;BR /&gt;Thank you for you help.</description>
      <pubDate>Fri, 08 Jul 2022 11:32:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-before-sales/m-p/822241#M324678</guid>
      <dc:creator>sascode</dc:creator>
      <dc:date>2022-07-08T11:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Remove before sales</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-before-sales/m-p/822248#M324680</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215702"&gt;@sascode&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;People here try to help you, but we assume you will also help us. If you have found another method, show us the solution so we can all benefit.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 12:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-before-sales/m-p/822248#M324680</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-08T12:19:32Z</dc:date>
    </item>
  </channel>
</rss>

