<?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: Oracle Extract w SQL and then sort in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Oracle-Extract-w-SQL-and-then-sort/m-p/32409#M7802</link>
    <description>&amp;gt; In the code below, ordering is done in the Oracle&lt;BR /&gt;
&amp;gt; world prior to bring the data into the SAS table.  Is&lt;BR /&gt;
&amp;gt; there a way to do the ordering (sorting) within this&lt;BR /&gt;
&amp;gt; same section of code but outside of the Oracle&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; where rownum &amp;lt; 9&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; ) order by cat_no ;&lt;BR /&gt;
&amp;gt; quit;</description>
    <pubDate>Thu, 11 Nov 2010 17:23:16 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2010-11-11T17:23:16Z</dc:date>
    <item>
      <title>Oracle Extract w SQL and then sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Oracle-Extract-w-SQL-and-then-sort/m-p/32408#M7801</link>
      <description>In the code below, ordering is done in the Oracle world prior to bring the data into the SAS table.  Is there a way to do the ordering (sorting) within this same section of code but outside of the Oracle passthru section?  &lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
     &amp;amp;connect;&lt;BR /&gt;
&lt;BR /&gt;
   create table Sales as&lt;BR /&gt;
   select *,&lt;BR /&gt;
             4 as value&lt;BR /&gt;
   from connection to oracle&lt;BR /&gt;
(&lt;BR /&gt;
select *&lt;BR /&gt;
&lt;BR /&gt;
from  sales_ord&lt;BR /&gt;
where rownum &amp;lt; 9&lt;BR /&gt;
order by cat_no&lt;BR /&gt;
);&lt;BR /&gt;
quit;</description>
      <pubDate>Thu, 11 Nov 2010 14:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Oracle-Extract-w-SQL-and-then-sort/m-p/32408#M7801</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2010-11-11T14:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Extract w SQL and then sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Oracle-Extract-w-SQL-and-then-sort/m-p/32409#M7802</link>
      <description>&amp;gt; In the code below, ordering is done in the Oracle&lt;BR /&gt;
&amp;gt; world prior to bring the data into the SAS table.  Is&lt;BR /&gt;
&amp;gt; there a way to do the ordering (sorting) within this&lt;BR /&gt;
&amp;gt; same section of code but outside of the Oracle&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; where rownum &amp;lt; 9&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; ) order by cat_no ;&lt;BR /&gt;
&amp;gt; quit;</description>
      <pubDate>Thu, 11 Nov 2010 17:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Oracle-Extract-w-SQL-and-then-sort/m-p/32409#M7802</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-11-11T17:23:16Z</dc:date>
    </item>
  </channel>
</rss>

