<?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 ERROR in libname connection in SAS EG and DI even though library was registered successfully in SMC in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858183#M42211</link>
    <description>&lt;P&gt;Hi SAS Community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need your advise in isolating the issue we encountered in our migration. So, we recently established connection/registered a new DB2 library using SAS Management Console. We can already see the tables migrated there however when testing the in SAS EG and SAS DI, we encountered an error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsndrct1234_0-1675999673782.png" style="width: 848px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80294iE372E1AAC7EED3C1/image-dimensions/848x70?v=v2" width="848" height="70" role="button" title="tsndrct1234_0-1675999673782.png" alt="tsndrct1234_0-1675999673782.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What could be the issues here? Btw, I'm new to SAS MC and SAS EG so apologies if there are any incorrect terms. Really appreciate your help. Thank you!&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>Fri, 10 Feb 2023 03:30:03 GMT</pubDate>
    <dc:creator>meatballs12345</dc:creator>
    <dc:date>2023-02-10T03:30:03Z</dc:date>
    <item>
      <title>ERROR in libname connection in SAS EG and DI even though library was registered successfully in SMC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858183#M42211</link>
      <description>&lt;P&gt;Hi SAS Community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need your advise in isolating the issue we encountered in our migration. So, we recently established connection/registered a new DB2 library using SAS Management Console. We can already see the tables migrated there however when testing the in SAS EG and SAS DI, we encountered an error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsndrct1234_0-1675999673782.png" style="width: 848px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80294iE372E1AAC7EED3C1/image-dimensions/848x70?v=v2" width="848" height="70" role="button" title="tsndrct1234_0-1675999673782.png" alt="tsndrct1234_0-1675999673782.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What could be the issues here? Btw, I'm new to SAS MC and SAS EG so apologies if there are any incorrect terms. Really appreciate your help. Thank you!&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>Fri, 10 Feb 2023 03:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858183#M42211</guid>
      <dc:creator>meatballs12345</dc:creator>
      <dc:date>2023-02-10T03:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR in libname connection in SAS EG and DI even though library was registered successfully in</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858184#M42212</link>
      <description>&lt;P&gt;Did you use exactly the same details as stored in the SMC data library definition? The error is clearly username/password issue. Are you using an encoded password by any chance? If so it will start with: {SASnnn}&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 03:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858184#M42212</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-02-10T03:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR in libname connection in SAS EG and DI even though library was registered successfully in</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858185#M42213</link>
      <description>&lt;P&gt;The error is clear: Either the user or the password are invalid.&lt;/P&gt;
&lt;P&gt;First test: Run your libname statement directly via SAS EG/Studio. Have both the user and password in single quotes. The password can be clear text or SAS encoded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And of course the credentials are not your SAS credentials but need to be the user/password defined on your DB2 server.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 04:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858185#M42213</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-02-10T04:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR in libname connection in SAS EG and DI even though library was registered successfully in</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858194#M42215</link>
      <description>&lt;P&gt;What I'm doing is I use the LIBNAME statement found on SAS Management Console:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsndrct1234_0-1676006381693.png" style="width: 676px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80297i9D29330B5A3B00DF/image-dimensions/676x354?v=v2" width="676" height="354" role="button" title="tsndrct1234_0-1676006381693.png" alt="tsndrct1234_0-1676006381693.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I doing anything wrong? Please help me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 05:20:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858194#M42215</guid>
      <dc:creator>meatballs12345</dc:creator>
      <dc:date>2023-02-10T05:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR in libname connection in SAS EG and DI even though library was registered successfully in</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858202#M42216</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/408900"&gt;@meatballs12345&lt;/a&gt; And you just copy/paste this into a SAS session. That looks right so I guess the library metadata already got invalid credentials.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 06:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858202#M42216</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-02-10T06:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR in libname connection in SAS EG and DI even though library was registered successfully in</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858207#M42217</link>
      <description>&lt;P&gt;May I know how do I check this? Cause we tried re-establishing the connection and we can see the tables under that DB2 library so we assume it's working. This is the exact script I ran and caused the error I pasted on the original post.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 07:03:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858207#M42217</guid>
      <dc:creator>meatballs12345</dc:creator>
      <dc:date>2023-02-10T07:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR in libname connection in SAS EG and DI even though library was registered successfully in</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858360#M42222</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/408900"&gt;@meatballs12345&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;May I know how do I check this? Cause we tried re-establishing the connection and we can see the tables under that DB2 library so we assume it's working. This is the exact script I ran and caused the error I pasted on the original post.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You show us SAS log from an execution that clearly returns that the connection couldn't get established due to invalid credentials. Now you write you re-established the connection and it worked. HOW did you re-establish this connection? Running the exact same libname statement? Or via some other means?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And once more: If using a clear-text password ensure it's in single quotes to avoid any issues with special characters like ampersand that are valid characters for a DB2 password.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://www.ibm.com/docs/en/baw/19.x?topic=security-characters-that-are-valid-user-ids-passwords" target="_blank"&gt;https://www.ibm.com/docs/en/baw/19.x?topic=security-characters-that-are-valid-user-ids-passwords&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 23:50:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858360#M42222</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-02-10T23:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR in libname connection in SAS EG and DI even though library was registered successfully in</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858456#M42228</link>
      <description>&lt;P&gt;So sorry for the confusion here's an overview of what happened:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1. Copied the DB2 libname statement in SAS Management Console (a&lt;EM&gt;ssumed the connection is okay since I can see all the tables under DB2 library and you also said that it's correct)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Pasted the DB2 libname statement in SAS Enterprise Guide and SAS Data Integration Tool but then I got the error &lt;EM&gt;(screenshot of log on original post)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 00:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858456#M42228</guid>
      <dc:creator>meatballs12345</dc:creator>
      <dc:date>2023-02-13T00:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR in libname connection in SAS EG and DI even though library was registered successfully in</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858459#M42229</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/408900"&gt;@meatballs12345&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;So sorry for the confusion here's an overview of what happened:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1. Copied the DB2 libname statement in SAS Management Console (a&lt;EM&gt;ssumed the connection is okay since I can see all the tables under DB2 library and you also said that it's correct)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Pasted the DB2 libname statement in SAS Enterprise Guide and SAS Data Integration Tool but then I got the error &lt;EM&gt;(screenshot of log on original post)&lt;/EM&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;SAS Management console doesn't actually establish the connection to DB2 unless you select to register/update tables. It normally just shows you what's in SAS Metadata. I would assume that you can see tables in SAS SMC because they have been registered in SAS Metadata as table metadata objects.&lt;/P&gt;
&lt;P&gt;If above is true then the libname would have worked at one point in the past but since then the DB2 credentials have been changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To take SAS out of the picture and if you know the clear text password: Try to connect to the database directly via a DB client (like DBeaver or the DB2 native client). I would expect that this also doesn't work. ....or confirm the valid credentials with your SAS Admin/DB2 Admin.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 01:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-in-libname-connection-in-SAS-EG-and-DI-even-though-library/m-p/858459#M42229</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-02-13T01:18:34Z</dc:date>
    </item>
  </channel>
</rss>

