<?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: SQL- Pass Through query in SAS Enterprise guide in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL-Pass-Through-query-in-SAS-Enterprise-guide/m-p/478757#M123485</link>
    <description>&lt;P&gt;You may want to show us code that actually runs.&amp;nbsp; The PROC SQL has unmatched parentheses [The "(" before "select" does not have a matching ")".]&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jul 2018 18:17:51 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2018-07-17T18:17:51Z</dc:date>
    <item>
      <title>SQL- Pass Through query in SAS Enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Pass-Through-query-in-SAS-Enterprise-guide/m-p/478754#M123484</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to ask for assistance regarding SQL Pass-Through facility in SAS EG. I have&amp;nbsp; never used this function in the past, and would like to inquire on how to retrieve the query results and be able to save as SAS dataset so I can use in data step task. I was able to successfully connect to our DBMS using the sample proc sql statement I created below, however, when I tried to create a SAS dataset from the query results , i am getting an error ,saying that the table I created from the pass -through query is not found. Appreciate any assistance. Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;connect to Oracle as mydata(path= path connection = global connection_group ="Con_Group" user = 'myuser' password='mypass');&lt;/P&gt;&lt;P&gt;create table Query_Results as&lt;/P&gt;&lt;P&gt;select * from Connection to mydata&lt;/P&gt;&lt;P&gt;(select *&lt;/P&gt;&lt;P&gt;&amp;nbsp;from Oracle_MBR_Table&lt;/P&gt;&lt;P&gt;where mbr_group_id ='12345';&lt;/P&gt;&lt;P&gt;disconnect from mydata;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set Query_Results;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 18:12:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Pass-Through-query-in-SAS-Enterprise-guide/m-p/478754#M123484</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2018-07-17T18:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: SQL- Pass Through query in SAS Enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Pass-Through-query-in-SAS-Enterprise-guide/m-p/478757#M123485</link>
      <description>&lt;P&gt;You may want to show us code that actually runs.&amp;nbsp; The PROC SQL has unmatched parentheses [The "(" before "select" does not have a matching ")".]&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 18:17:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Pass-Through-query-in-SAS-Enterprise-guide/m-p/478757#M123485</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2018-07-17T18:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: SQL- Pass Through query in SAS Enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Pass-Through-query-in-SAS-Enterprise-guide/m-p/478760#M123487</link>
      <description>&lt;P&gt;My apologies .. and thank you so much.&amp;nbsp;I was&amp;nbsp; so intimidated&amp;nbsp; by the SQL pass- through syntax&amp;nbsp; and overlooked the missing parenthesis&amp;nbsp;.&amp;nbsp;I can now&amp;nbsp; see the results.&amp;nbsp; Appreciate it!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 18:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Pass-Through-query-in-SAS-Enterprise-guide/m-p/478760#M123487</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2018-07-17T18:35:09Z</dc:date>
    </item>
  </channel>
</rss>

