<?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: SAS Date issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-issue/m-p/656453#M196825</link>
    <description>&lt;P&gt;&lt;SPAN&gt;MAX(XDATE) as XDATE&amp;nbsp;format mmddyyd10.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2020 15:25:07 GMT</pubDate>
    <dc:creator>mklangley</dc:creator>
    <dc:date>2020-06-10T15:25:07Z</dc:date>
    <item>
      <title>SAS Date issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-issue/m-p/656451#M196823</link>
      <description>&lt;P&gt;I have a volatile table built wilh a set of values&lt;BR /&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XDATE&lt;/P&gt;
&lt;P&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02APR2020&lt;/P&gt;
&lt;P&gt;234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06FEB2020&lt;/P&gt;
&lt;P&gt;234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 03MAR2020&lt;BR /&gt;.....&lt;BR /&gt;&lt;BR /&gt;I am querying the Max date grouped by the ID&lt;BR /&gt;PROC SQL;&lt;BR /&gt;select ID, MAX(XDATE) as XDATE from TABLE1&lt;BR /&gt;group by ID;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I get the result as&amp;nbsp;&lt;BR /&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XDATE&lt;BR /&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp; 22007&lt;BR /&gt;234&amp;nbsp; &amp;nbsp; &amp;nbsp; 22046&lt;BR /&gt;345&amp;nbsp; &amp;nbsp; &amp;nbsp; 21970&lt;BR /&gt;&lt;BR /&gt;How do i get a date output like '12-31-2999'&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 15:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-issue/m-p/656451#M196823</guid>
      <dc:creator>Jyuen204</dc:creator>
      <dc:date>2020-06-10T15:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-issue/m-p/656452#M196824</link>
      <description>&lt;P&gt;&lt;SPAN&gt;PROC SQL;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select ID, MAX(XDATE) as XDATE format=mmddyy10. from TABLE1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;group by ID;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 15:24:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-issue/m-p/656452#M196824</guid>
      <dc:creator>smantha</dc:creator>
      <dc:date>2020-06-10T15:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-issue/m-p/656453#M196825</link>
      <description>&lt;P&gt;&lt;SPAN&gt;MAX(XDATE) as XDATE&amp;nbsp;format mmddyyd10.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 15:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-issue/m-p/656453#M196825</guid>
      <dc:creator>mklangley</dc:creator>
      <dc:date>2020-06-10T15:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-issue/m-p/656456#M196826</link>
      <description>&lt;P&gt;In SQL when you use a function with AS NEWVARIABLE then the result will use the default numeric format, which is BEST because you did not tell SAS you wanted a different one.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 15:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-issue/m-p/656456#M196826</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-06-10T15:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-issue/m-p/656458#M196827</link>
      <description>&lt;P&gt;Thank you Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 15:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-issue/m-p/656458#M196827</guid>
      <dc:creator>Jyuen204</dc:creator>
      <dc:date>2020-06-10T15:43:17Z</dc:date>
    </item>
  </channel>
</rss>

