<?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: Connecting to and accessing table in SQL database  where there are multiple schemas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-and-accessing-table-in-SQL-database-where-there/m-p/795550#M255191</link>
    <description>&lt;P&gt;Did you try the Schema option?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p0nc2tikruabp6n1008nkdf0buee.htm" target="_self"&gt;LIBNAME Statement for the PostgreSQL Engine&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="SCHEMA= LIBNAME Statement Option" href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n14676yy6bhcjen18rxwswtajuuw.htm" target="_self"&gt;SCHEMA= LIBNAME Statement Option&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Feb 2022 18:47:54 GMT</pubDate>
    <dc:creator>AMSAS</dc:creator>
    <dc:date>2022-02-10T18:47:54Z</dc:date>
    <item>
      <title>Connecting to and accessing table in SQL database  where there are multiple schemas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-and-accessing-table-in-SQL-database-where-there/m-p/795547#M255190</link>
      <description>&lt;P&gt;I have been granted access to tables in a data warehouse.&amp;nbsp; When I use software such as DBeaver, I can open the tables I need. I need to analyze the data using SAS and I can't access the tables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Here's the warehouse setup:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Database ABCD
&lt;OL&gt;
&lt;LI&gt;Schemas
&lt;OL&gt;
&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C
&lt;OL&gt;
&lt;LI&gt;Table_1&lt;/LI&gt;
&lt;LI&gt;Table_2&lt;/LI&gt;
&lt;LI&gt;Table_3&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;libname statement&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;libname A1 postgres server="XXXXXXXXXX" port=&lt;STRONG&gt;5432&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;user=usrname pwd='XXXXX'&amp;nbsp; database=abcd;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS LOG:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;NOTE: Libref abcd was successfully assigned as follows:&lt;BR /&gt;Engine: POSTGRES&lt;BR /&gt;Physical Name: XXXXXXXXXX&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS Code:&lt;/STRONG&gt;&lt;BR /&gt;Proc contents data=a1._all_;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS LOG:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;ERROR: File A1.Table1 does not exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure what other libname options I need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your help is greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 18:17:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-and-accessing-table-in-SQL-database-where-there/m-p/795547#M255190</guid>
      <dc:creator>Kim_SOM</dc:creator>
      <dc:date>2022-02-10T18:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to and accessing table in SQL database  where there are multiple schemas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-and-accessing-table-in-SQL-database-where-there/m-p/795550#M255191</link>
      <description>&lt;P&gt;Did you try the Schema option?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p0nc2tikruabp6n1008nkdf0buee.htm" target="_self"&gt;LIBNAME Statement for the PostgreSQL Engine&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="SCHEMA= LIBNAME Statement Option" href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n14676yy6bhcjen18rxwswtajuuw.htm" target="_self"&gt;SCHEMA= LIBNAME Statement Option&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 18:47:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-and-accessing-table-in-SQL-database-where-there/m-p/795550#M255191</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2022-02-10T18:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to and accessing table in SQL database  where there are multiple schemas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-to-and-accessing-table-in-SQL-database-where-there/m-p/795554#M255194</link>
      <description>Thank you -- that seems to work.  I will have to test it.  &lt;BR /&gt;I appreciate the quick response&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Feb 2022 19:20:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-to-and-accessing-table-in-SQL-database-where-there/m-p/795554#M255194</guid>
      <dc:creator>Kim_SOM</dc:creator>
      <dc:date>2022-02-10T19:20:12Z</dc:date>
    </item>
  </channel>
</rss>

