<?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: ODBC Libname does not exist in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740299#M231221</link>
    <description>&lt;P&gt;Correct. At the very least you will need server= and database= components in your database connection string. The QUALIFIER = option may also be necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post your actual LIBNAME statement without the masking? You can make up the names that might be sensitive.&lt;/P&gt;</description>
    <pubDate>Mon, 10 May 2021 21:11:49 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2021-05-10T21:11:49Z</dc:date>
    <item>
      <title>ODBC Libname does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740258#M231193</link>
      <description>&lt;P&gt;Can anyone help with with accessing data from the ODBC database connection? The Libref was successfully assigned, however, I can not access that data of the contents. Please see the log below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mstjean_0-1620676108637.png" style="width: 785px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59190iFB16C3C874AB179E/image-dimensions/785x161?v=v2" width="785" height="161" role="button" title="mstjean_0-1620676108637.png" alt="mstjean_0-1620676108637.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 19:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740258#M231193</guid>
      <dc:creator>mstjean</dc:creator>
      <dc:date>2021-05-10T19:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Libname does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740262#M231197</link>
      <description>&lt;P&gt;To reference a data set in a library the syntax is LIBNAME.Datasetname (that little dot is important) . You only reference a data set without the libname,&amp;nbsp; that tells SAS the data set would be in the work library by default.&lt;/P&gt;
&lt;P&gt;If you want to try to list all the members of a library the syntax is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc contents data=libname._all_;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not all ODBC connections will provide access to proc contents it seems. If that appears to be your situation then copy the data sets to a new library and then try that library.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 19:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740262#M231197</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-10T19:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Libname does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740267#M231200</link>
      <description>Try PROC DATASETS and if you haven't used a schema, try including a schema.</description>
      <pubDate>Mon, 10 May 2021 20:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740267#M231200</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-10T20:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Libname does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740269#M231202</link>
      <description>&lt;P&gt;Also try expanding the library in the EG/Studio Server list or SAS Windowing System Library window and check if any tables show.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 20:14:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740269#M231202</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-05-10T20:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Libname does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740290#M231216</link>
      <description>&lt;P&gt;Thanks for your reply, I have tried your suggestion to list all members of the library and this is the error I have received:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mstjean_0-1620680321861.png" style="width: 738px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59193iADE6FBD737495225/image-dimensions/738x97?v=v2" width="738" height="97" role="button" title="mstjean_0-1620680321861.png" alt="mstjean_0-1620680321861.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this indicative of an issue of the library assignment itself?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 20:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740290#M231216</guid>
      <dc:creator>mstjean</dc:creator>
      <dc:date>2021-05-10T20:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Libname does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740295#M231218</link>
      <description>&lt;P&gt;Thank you for your suggestion,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already included a schema in the library assignment statement, when I used the proc datasets, I have received the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mstjean_1-1620680525186.png" style="width: 570px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59196iC2645B5D86E10168/image-dimensions/570x77?v=v2" width="570" height="77" role="button" title="mstjean_1-1620680525186.png" alt="mstjean_1-1620680525186.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am wondering if the issue is that there is no tables in this library. Is that possible?&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 21:02:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740295#M231218</guid>
      <dc:creator>mstjean</dc:creator>
      <dc:date>2021-05-10T21:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Libname does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740296#M231219</link>
      <description>It's possible, but ODBC also doesn't always let you access the metadata so sometimes PROC DATASETS cannot work. Try just accessing a table you know exist and see if it works. &lt;BR /&gt;&lt;BR /&gt;proc contents data=denodo.myTableName ;&lt;BR /&gt;run;</description>
      <pubDate>Mon, 10 May 2021 21:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740296#M231219</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-10T21:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Libname does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740299#M231221</link>
      <description>&lt;P&gt;Correct. At the very least you will need server= and database= components in your database connection string. The QUALIFIER = option may also be necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post your actual LIBNAME statement without the masking? You can make up the names that might be sensitive.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 21:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740299#M231221</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-05-10T21:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Libname does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740302#M231223</link>
      <description>&lt;P&gt;ODBC connections in general are variable. Some are one-way, i.e. you can "read the data" but requests, such as Proc Contents would send, are not responded to, or at least not in a manner that Contents can use. If you really need Proc Contents to tell you about the data then you need to copy the data from the ODBC source to an actual SAS data set or sets. That may involve requesting specific data sets one at a time or &lt;STRONG&gt;maybe&lt;/STRONG&gt; Proc Copy can get all the sets at once. The limits depend on the actual ODBC connection.&lt;/P&gt;
&lt;P&gt;If the source is a database you might be able to request the information from the database metadata table(s) if it has any. Maybe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 21:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740302#M231223</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-10T21:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Libname does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740304#M231224</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mstjean_0-1620681402442.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59198iDB2CF837E0595FC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mstjean_0-1620681402442.png" alt="mstjean_0-1620681402442.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No tables are showing when I try to expand it, is this the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 21:17:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740304#M231224</guid>
      <dc:creator>mstjean</dc:creator>
      <dc:date>2021-05-10T21:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Libname does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740306#M231226</link>
      <description>&lt;P&gt;I should clarify that I do not need proc contents; I need to analyze the data of one of the tables, in which I know the name. I wanted to begin by examining the contents to see if the library had tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should I proceed if I was to simply set one of tables in a data step. for example,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data 'mydata';&lt;/P&gt;&lt;P&gt;set 'existingODBCtable'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 21:20:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740306#M231226</guid>
      <dc:creator>mstjean</dc:creator>
      <dc:date>2021-05-10T21:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Libname does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740308#M231228</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/245583"&gt;@mstjean&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I should clarify that I do not need proc contents; I need to analyze the data of one of the tables, in which I know the name. I wanted to begin by examining the contents to see if the library had tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How should I proceed if I was to simply set one of tables in a data step. for example,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data 'mydata';&lt;/P&gt;
&lt;P&gt;set 'existingODBCtable'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Unless you want to perpetuate coding headaches drop the quotes on the SAS data set names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data mydata.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set denodo.remotedatasetname.&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the ODBC source has non-SAS Standard names then you would enclose the name in quotes and use an N to indicate such. SAS data set names start with _ or letter and contain &lt;STRONG&gt;only&lt;/STRONG&gt; _, letter or digits in the name. So any spaces, characters like - * % / are not standard and the name would look like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Set denodo."name with spaces"n ;&lt;/P&gt;
&lt;P&gt;The N and quotes that way tells SAS it is a "name literal".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 21:28:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740308#M231228</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-10T21:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Libname does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740311#M231231</link>
      <description>&lt;P&gt;Thank you so much for this!!! It worked! I can't thank you enough. You've saved me so much time with this. Take care!&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 21:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740311#M231231</guid>
      <dc:creator>mstjean</dc:creator>
      <dc:date>2021-05-10T21:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Libname does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740327#M231247</link>
      <description>&lt;P&gt;Could well be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Might be worth using the SAS option: OPTIONS validvarname = V7; - to ensure you end up with SAS-valid table names showing. Also be aware that only table names up to 32 characters long will show. There is no workaround for this.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 23:21:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODBC-Libname-does-not-exist/m-p/740327#M231247</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-05-10T23:21:10Z</dc:date>
    </item>
  </channel>
</rss>

