<?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 Creating data set  from query in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Creating-data-set-from-query/m-p/7966#M265</link>
    <description>I'm able to crate a report  by using:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
&lt;BR /&gt;
select  *  from all_jer &lt;BR /&gt;
except &lt;BR /&gt;
select *&lt;BR /&gt;
from out_jer  &lt;BR /&gt;
&lt;BR /&gt;
order by 1 ;   /** this is not working either ?? */&lt;BR /&gt;
&lt;BR /&gt;
Can  I have use this as a sub query to create a new table ?&lt;BR /&gt;
I.e rather than  a report o/p can  I  want  dataset as an output ?</description>
    <pubDate>Tue, 28 Sep 2010 00:36:29 GMT</pubDate>
    <dc:creator>Mushtaq</dc:creator>
    <dc:date>2010-09-28T00:36:29Z</dc:date>
    <item>
      <title>Creating data set  from query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-data-set-from-query/m-p/7966#M265</link>
      <description>I'm able to crate a report  by using:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
&lt;BR /&gt;
select  *  from all_jer &lt;BR /&gt;
except &lt;BR /&gt;
select *&lt;BR /&gt;
from out_jer  &lt;BR /&gt;
&lt;BR /&gt;
order by 1 ;   /** this is not working either ?? */&lt;BR /&gt;
&lt;BR /&gt;
Can  I have use this as a sub query to create a new table ?&lt;BR /&gt;
I.e rather than  a report o/p can  I  want  dataset as an output ?</description>
      <pubDate>Tue, 28 Sep 2010 00:36:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-data-set-from-query/m-p/7966#M265</guid>
      <dc:creator>Mushtaq</dc:creator>
      <dc:date>2010-09-28T00:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating data set  from query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-data-set-from-query/m-p/7967#M266</link>
      <description>Mush,&lt;BR /&gt;
&lt;BR /&gt;
Of course!&lt;BR /&gt;
&lt;BR /&gt;
To avoid seeing the table, simply start your call with:&lt;BR /&gt;
&lt;BR /&gt;
proc sql noprint;&lt;BR /&gt;
&lt;BR /&gt;
Then, before your select statement, simply add:&lt;BR /&gt;
&lt;BR /&gt;
create table you_choos_a_name as&lt;BR /&gt;
&lt;BR /&gt;
Then continue on with the rest of your statements.&lt;BR /&gt;
&lt;BR /&gt;
HTH,&lt;BR /&gt;
Art</description>
      <pubDate>Tue, 28 Sep 2010 03:00:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-data-set-from-query/m-p/7967#M266</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2010-09-28T03:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating data set  from query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-data-set-from-query/m-p/7968#M267</link>
      <description>Could you use CREATE TABLE lib.dataset AS&lt;BR /&gt;
for your second line of code after the PROC SQL;?</description>
      <pubDate>Thu, 30 Sep 2010 17:04:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-data-set-from-query/m-p/7968#M267</guid>
      <dc:creator>stateworker</dc:creator>
      <dc:date>2010-09-30T17:04:05Z</dc:date>
    </item>
  </channel>
</rss>

