<?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: Select MAX Value from table in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Select-MAX-Value-from-table/m-p/281571#M8028</link>
    <description>&lt;P&gt;Hi, I would use an Extract transform. Map the DATA_ARQUIVO column with an expression MAX(DATA_ARQUIVO).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The essence of the code would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %str(NOTE: Mapping columns ...);
proc sql;
   create table work.W36LRL as
      select
         (max(DATA_ARQUIVO)) as DATA_ARQUIVO length = 8
   from &amp;amp;SYSLAST
   ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3868iE70DED6F0F71C2FE/image-size/original?v=v2&amp;amp;px=-1" alt="Extract Properties_2016-06-30_23-20-09.png" title="Extract Properties_2016-06-30_23-20-09.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2016 21:25:10 GMT</pubDate>
    <dc:creator>jklaverstijn</dc:creator>
    <dc:date>2016-06-30T21:25:10Z</dc:date>
    <item>
      <title>Select MAX Value from table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Select-MAX-Value-from-table/m-p/281554#M8027</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I need to find the highest record in a table ("DATA_ARQUIVO" field).&lt;BR /&gt;I'm trying to use the Create Table without success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG title="1.jpg" alt="1.jpg" src="https://communities.sas.com/t5/image/serverpage/image-id/3863i36C99AEC3EAE53D5/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG title="2.jpg" alt="2.jpg" src="https://communities.sas.com/t5/image/serverpage/image-id/3864iAE6B5AA161EECCDB/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG title="3.jpg" alt="3.jpg" src="https://communities.sas.com/t5/image/serverpage/image-id/3865i86EC5AC7ACE8E247/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="short_text"&gt;Any ideas to help me?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="short_text"&gt;Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 19:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Select-MAX-Value-from-table/m-p/281554#M8027</guid>
      <dc:creator>fabiopjr</dc:creator>
      <dc:date>2016-06-30T19:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select MAX Value from table</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Select-MAX-Value-from-table/m-p/281571#M8028</link>
      <description>&lt;P&gt;Hi, I would use an Extract transform. Map the DATA_ARQUIVO column with an expression MAX(DATA_ARQUIVO).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The essence of the code would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %str(NOTE: Mapping columns ...);
proc sql;
   create table work.W36LRL as
      select
         (max(DATA_ARQUIVO)) as DATA_ARQUIVO length = 8
   from &amp;amp;SYSLAST
   ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3868iE70DED6F0F71C2FE/image-size/original?v=v2&amp;amp;px=-1" alt="Extract Properties_2016-06-30_23-20-09.png" title="Extract Properties_2016-06-30_23-20-09.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 21:25:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Select-MAX-Value-from-table/m-p/281571#M8028</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-06-30T21:25:10Z</dc:date>
    </item>
  </channel>
</rss>

