<?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: ways to create flag for old vs new datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ways-to-create-flag-for-old-vs-new-datasets/m-p/702583#M215191</link>
    <description>&lt;P&gt;Depends.. Show us your data?&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 17:38:01 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2020-11-30T17:38:01Z</dc:date>
    <item>
      <title>ways to create flag for old vs new datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ways-to-create-flag-for-old-vs-new-datasets/m-p/702578#M215189</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to create a listing for raw AE (adverse events) data.&amp;nbsp; This listings need to be rerun everytime we have a new data.&amp;nbsp; I need to create a flag to identify old records(previous data) vs. new record(new data).&amp;nbsp; What would be the best way to create the flag?&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 17:32:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ways-to-create-flag-for-old-vs-new-datasets/m-p/702578#M215189</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2020-11-30T17:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: ways to create flag for old vs new datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ways-to-create-flag-for-old-vs-new-datasets/m-p/702583#M215191</link>
      <description>&lt;P&gt;Depends.. Show us your data?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 17:38:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ways-to-create-flag-for-old-vs-new-datasets/m-p/702583#M215191</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-11-30T17:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: ways to create flag for old vs new datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ways-to-create-flag-for-old-vs-new-datasets/m-p/702586#M215193</link>
      <description>Create a view that has the data and include the reporting date/event date or date you enter it into the table. Then add a dynamic variable that's set if the maximum date is the date and set that to 1 or True or whatever you'd like.&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create view want as&lt;BR /&gt;select *, case when report_date = max(report_date) then f "New"&lt;BR /&gt;else  "Old" end as flag&lt;BR /&gt;from have;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;Then report using the view, not the table. Or add that similar logic to your append process.</description>
      <pubDate>Mon, 30 Nov 2020 17:45:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ways-to-create-flag-for-old-vs-new-datasets/m-p/702586#M215193</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-30T17:45:11Z</dc:date>
    </item>
  </channel>
</rss>

