<?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 How to create a SAS table from query in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-SAS-table-from-query/m-p/522564#M141896</link>
    <description>&lt;P&gt;I want to query through a table stored on the Netezza server and generate a SAS table out of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my query:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql; 
connect to odbc as odbcCon 
(noprompt='Driver={NetezzaSQL}; server=xxxxxx; port=xxxxx; database=xxx; username=xxxx; password=xxxxx;'); 
select * from connection to odbcCon 
(SELECT *
  FROM SCHEMA.table1
 LIMIT 100;); 
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It's an sql pass through. How can I generate a SAS table from the result of the query? Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 19 Dec 2018 15:25:33 GMT</pubDate>
    <dc:creator>jim_toby</dc:creator>
    <dc:date>2018-12-19T15:25:33Z</dc:date>
    <item>
      <title>How to create a SAS table from query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-SAS-table-from-query/m-p/522564#M141896</link>
      <description>&lt;P&gt;I want to query through a table stored on the Netezza server and generate a SAS table out of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my query:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql; 
connect to odbc as odbcCon 
(noprompt='Driver={NetezzaSQL}; server=xxxxxx; port=xxxxx; database=xxx; username=xxxx; password=xxxxx;'); 
select * from connection to odbcCon 
(SELECT *
  FROM SCHEMA.table1
 LIMIT 100;); 
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It's an sql pass through. How can I generate a SAS table from the result of the query? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 15:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-SAS-table-from-query/m-p/522564#M141896</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-12-19T15:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a SAS table from query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-SAS-table-from-query/m-p/522593#M141906</link>
      <description>&lt;P&gt;All you need to do is add a create table statement&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql; 
connect to odbc as odbcCon 
(noprompt='Driver={NetezzaSQL}; server=xxxxxx; port=xxxxx; database=xxx; username=xxxx; password=xxxxx;'); 
create table work.sastable as 
select * from connection to odbcCon 
(SELECT *
  FROM SCHEMA.table1
 LIMIT 100;); 
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Dec 2018 15:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-SAS-table-from-query/m-p/522593#M141906</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-12-19T15:47:21Z</dc:date>
    </item>
  </channel>
</rss>

