<?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 on connect to DB2 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-on-connect-to-DB2/m-p/620491#M35447</link>
    <description>&lt;P&gt;my code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let env = DBPROD;&lt;BR /&gt;%let user = sam;&lt;BR /&gt;%let pwd = welcome;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to db2 as db2con (db="&amp;amp;env" user="&amp;amp;user" pw="&amp;amp;pwd");&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error:&lt;/P&gt;&lt;P&gt;ERROR: CLI error trying to establish connection: [IBM][CLI Driver] SQL1013N The database alias name or database name "DBPROD"&lt;BR /&gt;could not be found. SQLSTATE=42705&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2020 13:43:33 GMT</pubDate>
    <dc:creator>radha009</dc:creator>
    <dc:date>2020-01-28T13:43:33Z</dc:date>
    <item>
      <title>Error on connect to DB2</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-on-connect-to-DB2/m-p/620491#M35447</link>
      <description>&lt;P&gt;my code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let env = DBPROD;&lt;BR /&gt;%let user = sam;&lt;BR /&gt;%let pwd = welcome;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to db2 as db2con (db="&amp;amp;env" user="&amp;amp;user" pw="&amp;amp;pwd");&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error:&lt;/P&gt;&lt;P&gt;ERROR: CLI error trying to establish connection: [IBM][CLI Driver] SQL1013N The database alias name or database name "DBPROD"&lt;BR /&gt;could not be found. SQLSTATE=42705&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:43:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-on-connect-to-DB2/m-p/620491#M35447</guid>
      <dc:creator>radha009</dc:creator>
      <dc:date>2020-01-28T13:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error on connect to DB2</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-on-connect-to-DB2/m-p/620675#M35453</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/192083"&gt;@radha009&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SQL1013N and SQLSTATE=42705 means that the database, in this case DBPROD may not have been cataloged on the DB2 client.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can read about it, here.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.ibm.com/support/pages/sql1013n-db2-connect" target="_blank" rel="noopener"&gt;https://www.ibm.com/support/pages/sql1013n-db2-connect&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have the DB2 CLI installed on the client you can invoke it and issue the following command:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;db2 list db directory&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If DBPROD isn't listed, it will need to be cataloged.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This Stackoverflow thread may help you:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://stackoverflow.com/questions/19303061/db2-database-directory-shows-db-that-does-not-exist" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/19303061/db2-database-directory-shows-db-that-does-not-exist&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this is all gibberish, you may need to contact your DBA and have them configure the client.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best wishes,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 14:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-on-connect-to-DB2/m-p/620675#M35453</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2020-01-30T14:45:33Z</dc:date>
    </item>
  </channel>
</rss>

