<?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: SAS Reading Schema Name as Libref and saying it's not assigned in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Reading-Schema-Name-as-Libref-and-saying-it-s-not-assigned/m-p/589790#M168735</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/291066"&gt;@Yokodaspacewale&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you include your LIBNAME statements and/or CONNECT statements because it will help us sort this out?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best wishes,&lt;BR /&gt;Jeff&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Sep 2019 19:04:13 GMT</pubDate>
    <dc:creator>JBailey</dc:creator>
    <dc:date>2019-09-18T19:04:13Z</dc:date>
    <item>
      <title>SAS Reading Schema Name as Libref and saying it's not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Reading-Schema-Name-as-Libref-and-saying-it-s-not-assigned/m-p/589748#M168722</link>
      <description>&lt;P&gt;Version 7.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Proc Sql from an oracle connection, I am unable to run code in SAS against a particular schema and only that schema in the DB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;examples &lt;STRIKE&gt;(excluding the PROC SQL and connection strings)&lt;/STRIKE&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Path text:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname temp "/sas_env/empl/sm/My_Name";
%let databasepath2="(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxxxxx)(PORT=xxxx))
(CONNECT_DATA=(SERVICE_NAME=xxxx)))";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Schema from path causing issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc sql;

connect to oracle (user=xxxxx password='xxxxx' path=&amp;amp;databasepath2);

create table FCST as

select * from DM.items;
Quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;returns a Libref not assigned error&lt;/P&gt;&lt;P&gt;DM is a legitimate schema name in the DB and works in every other query application I have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;schema from same path not causing issue:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc sql;

connect to oracle (user=xxxxx password='xxxxx' path=&amp;amp;databasepath2);

create table FCST as

select * from APPS.Some_Other_Table_In_This_DB;
Quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;"APPS" is a schema from the same connection and this works fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any way around this, or just an explanation of what's happening here would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 19:21:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Reading-Schema-Name-as-Libref-and-saying-it-s-not-assigned/m-p/589748#M168722</guid>
      <dc:creator>Yokodaspacewale</dc:creator>
      <dc:date>2019-09-18T19:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Reading Schema Name as Libref and saying it's not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Reading-Schema-Name-as-Libref-and-saying-it-s-not-assigned/m-p/589790#M168735</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/291066"&gt;@Yokodaspacewale&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you include your LIBNAME statements and/or CONNECT statements because it will help us sort this out?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best wishes,&lt;BR /&gt;Jeff&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 19:04:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Reading-Schema-Name-as-Libref-and-saying-it-s-not-assigned/m-p/589790#M168735</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2019-09-18T19:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Reading Schema Name as Libref and saying it's not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Reading-Schema-Name-as-Libref-and-saying-it-s-not-assigned/m-p/589793#M168736</link>
      <description>&lt;P&gt;You are passing those queries to the database to run? Or are you submitting them directly as SAS statements?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS syntax the first query is asking to select the dataset ITEMS from the location library that the libref DM points to.&lt;/P&gt;
&lt;P&gt;If you want to push code into your external database use something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to oracle ..... ;
select * from connection to oracle
(select * from DM.items
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 19:14:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Reading-Schema-Name-as-Libref-and-saying-it-s-not-assigned/m-p/589793#M168736</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-09-18T19:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Reading Schema Name as Libref and saying it's not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Reading-Schema-Name-as-Libref-and-saying-it-s-not-assigned/m-p/589798#M168737</link>
      <description>&lt;P&gt;edited. thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 19:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Reading-Schema-Name-as-Libref-and-saying-it-s-not-assigned/m-p/589798#M168737</guid>
      <dc:creator>Yokodaspacewale</dc:creator>
      <dc:date>2019-09-18T19:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Reading Schema Name as Libref and saying it's not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Reading-Schema-Name-as-Libref-and-saying-it-s-not-assigned/m-p/589800#M168739</link>
      <description>&lt;P&gt;This was it. man I'm dumb. This is how the "APPS" one looks. I knew this and missed it. thanks!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 19:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Reading-Schema-Name-as-Libref-and-saying-it-s-not-assigned/m-p/589800#M168739</guid>
      <dc:creator>Yokodaspacewale</dc:creator>
      <dc:date>2019-09-18T19:25:32Z</dc:date>
    </item>
  </channel>
</rss>

