<?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 Check latest date in 3 different tables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Check-latest-date-in-3-different-tables/m-p/309505#M66607</link>
    <description>&lt;P&gt;Hi, what is the best way to check what the latest dates are in 3 differet tables from one procedure?&amp;nbsp; The vriable&amp;nbsp;'Process_Date' is called the same in all 3 tables, however there are no linkage between the 3 tables.. like acct. number.&amp;nbsp; Also is there a way to see the same ask, but if the term 'process_Date' is called different for all 3 tables?&amp;nbsp; Thanks.&lt;/P&gt;</description>
    <pubDate>Sat, 05 Nov 2016 12:30:52 GMT</pubDate>
    <dc:creator>podarum</dc:creator>
    <dc:date>2016-11-05T12:30:52Z</dc:date>
    <item>
      <title>Check latest date in 3 different tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Check-latest-date-in-3-different-tables/m-p/309505#M66607</link>
      <description>&lt;P&gt;Hi, what is the best way to check what the latest dates are in 3 differet tables from one procedure?&amp;nbsp; The vriable&amp;nbsp;'Process_Date' is called the same in all 3 tables, however there are no linkage between the 3 tables.. like acct. number.&amp;nbsp; Also is there a way to see the same ask, but if the term 'process_Date' is called different for all 3 tables?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 12:30:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Check-latest-date-in-3-different-tables/m-p/309505#M66607</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2016-11-05T12:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Check latest date in 3 different tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Check-latest-date-in-3-different-tables/m-p/309506#M66608</link>
      <description>&lt;P&gt;What are you expecting for output? 3 diff dates, highest from each?&lt;/P&gt;
&lt;P&gt;One date that's highest from all three tables?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 13:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Check-latest-date-in-3-different-tables/m-p/309506#M66608</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-05T13:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Check latest date in 3 different tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Check-latest-date-in-3-different-tables/m-p/309513#M66613</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want (keep=max_date);
set
  table1
  table2
  table3
  end=done
;
retain max_date;
format max_date date9.;
max_date = max(max_date,process_date);
if done
then do;
  call symput('max_date',put(max_date,best.));
  output;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;gives you both a dataset and a macro variable for further use.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 17:01:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Check-latest-date-in-3-different-tables/m-p/309513#M66613</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-05T17:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Check latest date in 3 different tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Check-latest-date-in-3-different-tables/m-p/309524#M66620</link>
      <description>&lt;P&gt;If your date variable is called differently in the datasets, use the rename= dataset option to make it same.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 19:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Check-latest-date-in-3-different-tables/m-p/309524#M66620</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-05T19:05:00Z</dc:date>
    </item>
  </channel>
</rss>

