<?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: how do i in proc sql ? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/using-proc-sql-make-a-dataset-Pick-maximum-AON-for-each-year-and/m-p/543741#M7212</link>
    <description>&lt;P&gt;proc sql;&lt;BR /&gt;select distinct Max(AON ) AS Maximum_of_AON,smb.product_id&lt;BR /&gt;from class1.smb as Actual_AON&lt;BR /&gt;group by product_id&lt;BR /&gt;having AON=max(AON);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which gives :&lt;/P&gt;&lt;P&gt;Maximum_of_AON PRODUCT_ID&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1281&lt;/TD&gt;&lt;TD&gt;114832053&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is not the required result i want maximum of AON for all product id's&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Mar 2019 15:51:12 GMT</pubDate>
    <dc:creator>Shrutibhatnagar</dc:creator>
    <dc:date>2019-03-16T15:51:12Z</dc:date>
    <item>
      <title>using proc sql make a dataset ,Pick maximum AON for each year and join with main data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/using-proc-sql-make-a-dataset-Pick-maximum-AON-for-each-year-and/m-p/543717#M7209</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have smb1 dataset which has 3 different AGE OF NETWORKS for 3 different years&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to select only the MAXIMUM AON&amp;nbsp; using proc sql and also use this maximum AGE OF NETWORKS against the Product id&amp;nbsp;&lt;/P&gt;&lt;P&gt;as 3&amp;nbsp; different AGES are not possible .&amp;nbsp; how to create the data set for&amp;nbsp; age of network along one id .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2019 12:55:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/using-proc-sql-make-a-dataset-Pick-maximum-AON-for-each-year-and/m-p/543717#M7209</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-03-16T12:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: how do i in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/using-proc-sql-make-a-dataset-Pick-maximum-AON-for-each-year-and/m-p/543720#M7210</link>
      <description>&lt;P&gt;Please show us a representative portion of the data that you are working on. Please show us the output you desire from the representative portion of your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please go back and edit the title to something a little more descriptive of the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2019 11:30:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/using-proc-sql-make-a-dataset-Pick-maximum-AON-for-each-year-and/m-p/543720#M7210</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-16T11:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: how do i in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/using-proc-sql-make-a-dataset-Pick-maximum-AON-for-each-year-and/m-p/543727#M7211</link>
      <description>&lt;P&gt;hello same has been edited !!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2019 13:01:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/using-proc-sql-make-a-dataset-Pick-maximum-AON-for-each-year-and/m-p/543727#M7211</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-03-16T13:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: how do i in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/using-proc-sql-make-a-dataset-Pick-maximum-AON-for-each-year-and/m-p/543741#M7212</link>
      <description>&lt;P&gt;proc sql;&lt;BR /&gt;select distinct Max(AON ) AS Maximum_of_AON,smb.product_id&lt;BR /&gt;from class1.smb as Actual_AON&lt;BR /&gt;group by product_id&lt;BR /&gt;having AON=max(AON);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which gives :&lt;/P&gt;&lt;P&gt;Maximum_of_AON PRODUCT_ID&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1281&lt;/TD&gt;&lt;TD&gt;114832053&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is not the required result i want maximum of AON for all product id's&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2019 15:51:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/using-proc-sql-make-a-dataset-Pick-maximum-AON-for-each-year-and/m-p/543741#M7212</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-03-16T15:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: how do i in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/using-proc-sql-make-a-dataset-Pick-maximum-AON-for-each-year-and/m-p/543746#M7213</link>
      <description>&lt;P&gt;You added a spreadsheet, not a dataset. The proper method for posting SAS datasets is data steps with datalines.&lt;/P&gt;
&lt;P&gt;A re-import of a spreadsheet is close to 100% sure to be different from the original dataset.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2019 17:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/using-proc-sql-make-a-dataset-Pick-maximum-AON-for-each-year-and/m-p/543746#M7213</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-16T17:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: how do i in proc sql ?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/using-proc-sql-make-a-dataset-Pick-maximum-AON-for-each-year-and/m-p/543749#M7214</link>
      <description>&lt;P&gt;You seem to need:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select 
    AON AS Maximum_of_AON,
    product_id
from class1.smb
group by product_id
having AON=max(AON);
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Mar 2019 19:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/using-proc-sql-make-a-dataset-Pick-maximum-AON-for-each-year-and/m-p/543749#M7214</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-03-16T19:59:12Z</dc:date>
    </item>
  </channel>
</rss>

