<?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/ACCESS ODBC: Connection String truncation with PROC SQL Pass Pass Through &amp;quot;Connect Usin in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-ACCESS-ODBC-Connection-String-truncation-with-PROC-SQL-Pass/m-p/841962#M82194</link>
    <description>&lt;P&gt;Thanks, I think I'll have to go down the technical support track...&lt;BR /&gt;&lt;BR /&gt;Thanks for linking that issue, I don't&amp;nbsp;&lt;EM&gt;think&lt;/EM&gt; it applies anymore in 9.4M6 seeing that simply changing the READBUFF can trigger issue using CONNECT USING.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 19:23:29 GMT</pubDate>
    <dc:creator>jchiang</dc:creator>
    <dc:date>2022-11-01T19:23:29Z</dc:date>
    <item>
      <title>SAS/ACCESS ODBC: Connection String truncation with PROC SQL Pass Pass Through "Connect Using"?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-ACCESS-ODBC-Connection-String-truncation-with-PROC-SQL-Pass/m-p/841942#M82192</link>
      <description>&lt;P&gt;I'm noticing odd behavior with ODBC in Linux64 operating system where CONNECT USING and CONNECT TO differ on DSN-less (NOPROMPT) connections. Cannot find relevant documentation or if this is a bug. Does anyone know if there is a solution to allow for CONNECT USING to function like CONNECT TO? We hope to use CONNECT USING so that the LIBREF can be defined only once in code, rather than repeatedly calling a NOPROMPT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm on SAS9.4M6 In the below statements I have masked connection details but preserved the length of the strings by putting in an "×" where a character was.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following statement works and the ODBC Trace exits from SQLDriverConnect with SQL_SUCCESS, connection string length of &lt;STRONG&gt;366&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;OPTIONS
    SASTRACE='d,,,'
    SASTRACELOC=saslog
    NOSTSUFFIX;

libname sf odbc
noprompt="DRIVER={/××××××××××××××××××××××××××××/libSnowflake.so};
AUTHENTICATOR=SNOWFLAKE_JWT;
SERVER=××××××××××××××××××××××××××××××snowflakecomputing.com;
UID=×××××××××××××××××××××××××;
PRIV_KEY_FILE=×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××;
PRIV_KEY_FILE_PWD=;
ROLE=×××××××××××××××××××××××××××××××××;
WAREHOUSE=×××××××××××××××××××××××;
DATABASE=×××××××××××××××××;"
readbuff=999;

proc sql;
    connect using sf;
    disconnect from sf;
quit;
%PUT &amp;amp;=SQLXRC.;&lt;BR /&gt;%PUT &amp;amp;=SQLXMSG.;
libname sf clear;

OPTIONS
    SASTRACE=OFF;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However. If I edit the connection string and add parameters, or even simply change the location of the private key to a&amp;nbsp;&lt;STRONG&gt;single character longer,&lt;/STRONG&gt; the libref assignment succeeds but the CONNECT USING fails. Also, if I keep the same 366 length NOPROMPT as above but edit READBUFF=1000 (one additional digit), I get the same error. Interestingly, adding SCHEMA= option to the libref does not produce this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;libname sf odbc
noprompt="DRIVER={/××××××××××××××××××××××××××××/libSnowflake.so};
AUTHENTICATOR=SNOWFLAKE_JWT;
SERVER=××××××××××××××××××××××××××××××snowflakecomputing.com;
UID=×××××××××××××××××××××××××;
PRIV_KEY_FILE=××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××;
PRIV_KEY_FILE_PWD=;
ROLE=×××××××××××××××××××××××××××××××××;
WAREHOUSE=×××××××××××××××××××××××;
DATABASE=×××××××××××××××××;"
readbuff=999;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This edit (1 character longer NOPROMPT) produces an error where SQLDriverConnect read a "0 length" NOPROMPT and PROC SQL returns:&lt;/P&gt;&lt;PRE&gt;%PUT &amp;amp;=SQLXRC.;
 SQLXRC=IM002
%PUT &amp;amp;=SQLXMSG.;
 SQLXMSG=[unixODBC][Driver Manager]Data source name not found, and no default driver specified&lt;/PRE&gt;&lt;P&gt;However, the LIBNAME statement it is USING executes without issue, with NOPROMPT having a 367 length reported in trace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oddly, the length is completely irrelevant for all scenarios tested when using CONNECT TO. All scenarios run &lt;STRONG&gt;successfully&lt;/STRONG&gt; in CONNECT TO without issue, including with READBUFF up to 32767.&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>Tue, 01 Nov 2022 18:04:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-ACCESS-ODBC-Connection-String-truncation-with-PROC-SQL-Pass/m-p/841942#M82192</guid>
      <dc:creator>jchiang</dc:creator>
      <dc:date>2022-11-01T18:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS ODBC: Connection String truncation with PROC SQL Pass Pass Through "Connect Usin</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-ACCESS-ODBC-Connection-String-truncation-with-PROC-SQL-Pass/m-p/841961#M82193</link>
      <description>&lt;P&gt;I suggest you open a Tech Support track on this. I use CONNECT USING a lot and never had any problems but I'm not accessing Snowflake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure if this old SAS note is still relevant or not:&amp;nbsp;&lt;A href="https://support.sas.com/kb/50/855.html" target="_blank"&gt;https://support.sas.com/kb/50/855.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 19:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-ACCESS-ODBC-Connection-String-truncation-with-PROC-SQL-Pass/m-p/841961#M82193</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-11-01T19:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS ODBC: Connection String truncation with PROC SQL Pass Pass Through "Connect Usin</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-ACCESS-ODBC-Connection-String-truncation-with-PROC-SQL-Pass/m-p/841962#M82194</link>
      <description>&lt;P&gt;Thanks, I think I'll have to go down the technical support track...&lt;BR /&gt;&lt;BR /&gt;Thanks for linking that issue, I don't&amp;nbsp;&lt;EM&gt;think&lt;/EM&gt; it applies anymore in 9.4M6 seeing that simply changing the READBUFF can trigger issue using CONNECT USING.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 19:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-ACCESS-ODBC-Connection-String-truncation-with-PROC-SQL-Pass/m-p/841962#M82194</guid>
      <dc:creator>jchiang</dc:creator>
      <dc:date>2022-11-01T19:23:29Z</dc:date>
    </item>
  </channel>
</rss>

