<?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 use proc sql to pull a table created on sql developer in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/use-proc-sql-to-pull-a-table-created-on-sql-developer/m-p/172925#M44543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm extremely new to SQL Developer and pulling data using SAS from Oracle.&amp;nbsp; If under connection aa_aaa, I created a table named pat_details and my username is pinkny how do I basically "import" the table in SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way another person's reference code does it is by libname REC oracle=user orapwd=password path="PATH" schema=SCHEMA;&lt;/P&gt;&lt;P&gt;Where PATH here would be the connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql&lt;/P&gt;&lt;P&gt;create table NAME as&lt;/P&gt;&lt;P&gt;select distinct * from LIBREF.TABLENAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(in my case REC.pat_details)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing this, but I'm not sure what schema the created table would fall under?&amp;nbsp; Is it by default the same as my username?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jan 2015 17:26:53 GMT</pubDate>
    <dc:creator>pinkyc</dc:creator>
    <dc:date>2015-01-07T17:26:53Z</dc:date>
    <item>
      <title>use proc sql to pull a table created on sql developer</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/use-proc-sql-to-pull-a-table-created-on-sql-developer/m-p/172925#M44543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm extremely new to SQL Developer and pulling data using SAS from Oracle.&amp;nbsp; If under connection aa_aaa, I created a table named pat_details and my username is pinkny how do I basically "import" the table in SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way another person's reference code does it is by libname REC oracle=user orapwd=password path="PATH" schema=SCHEMA;&lt;/P&gt;&lt;P&gt;Where PATH here would be the connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql&lt;/P&gt;&lt;P&gt;create table NAME as&lt;/P&gt;&lt;P&gt;select distinct * from LIBREF.TABLENAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(in my case REC.pat_details)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing this, but I'm not sure what schema the created table would fall under?&amp;nbsp; Is it by default the same as my username?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 17:26:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/use-proc-sql-to-pull-a-table-created-on-sql-developer/m-p/172925#M44543</guid>
      <dc:creator>pinkyc</dc:creator>
      <dc:date>2015-01-07T17:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: use proc sql to pull a table created on sql developer</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/use-proc-sql-to-pull-a-table-created-on-sql-developer/m-p/172926#M44544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I figured it out so for reference:&lt;/P&gt;&lt;P&gt;libname REC oracle user=pinkny orapwd=1234 path="aa_aaa" schema=pinkny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql&lt;/P&gt;&lt;P&gt;create table NAME as&lt;/P&gt;&lt;P&gt;select distinct * from REC.pat_details&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 19:24:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/use-proc-sql-to-pull-a-table-created-on-sql-developer/m-p/172926#M44544</guid>
      <dc:creator>pinkyc</dc:creator>
      <dc:date>2015-01-07T19:24:32Z</dc:date>
    </item>
  </channel>
</rss>

