<?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 to Sybase error when using 'Connect Using' in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-to-Sybase-error-when-using-Connect-Using/m-p/583241#M17844</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/173354"&gt;@mpordon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think your Sybase interfaces file is pointing to an incorrect server (or there is some other setup problem). There may be missing environment variables. You can try connecting with isql and it will probably give you the same error message.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a snippet from an interfaces file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MYSERVER
        master tcp ether myserver 5000
        query tcp ether myserver 5000

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Connecting with isql is a good test because it takes SAS out of the picture.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc35456.1570/html/ocspsunx/X33477.htm" target="_self"&gt;Link to the SAP doc describing isql&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure the environment variables are correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/installcenter/en/ikfdtnunxcg/66380/PDF/default/config.pdf" target="_self"&gt;SAS 9.4 Configuration Guide for Linux&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Jeff&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2019 15:58:48 GMT</pubDate>
    <dc:creator>JBailey</dc:creator>
    <dc:date>2019-08-22T15:58:48Z</dc:date>
    <item>
      <title>SAS/ACCESS to Sybase error when using 'Connect Using'</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-to-Sybase-error-when-using-Connect-Using/m-p/582726#M17840</link>
      <description>&lt;P&gt;In a set of code we have we define a&amp;nbsp;libref to a Sybase server in the beginning and use the 'connect using' syntax to run explicit pass-through code on the server. Originally the libref was defined using ODBC as below along with an example of how we were running pass-through code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname Server odbc required="driver=Adaptive Server Enterprise;server=[SERVER];port=[PORT];database=[DATABASE];logonid=[ID];password=[PASSWORD];charset=iso_1;" schema=dbo;
proc sql;
	Connect using Server;
	Select
		*
	From
		Connection to Sever
		(
			Select
				8
			From
				SomeTable
		);	
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;Recently we were asked to start using&amp;nbsp;proc pwencode to encode our passwords so that they did not need to be stored as plaintext. To my knowledge the SAS encoded passwords do not work in the 'required' parameter so we switched the libref declaration to:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname Server sybase USER=[ID] PASSWORD="[PASSWORD]" SERVER=[SERVER] DATABASE=[DATABASE] schema=dbo;
proc sql;
	Connect using Server;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The libname statement works&amp;nbsp;as expected&amp;nbsp;and I can navigate to tables on the server via the explorer. However, the attempt to connect using the libname via proc sql now generates an error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pass Through Error.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31896i3BBAC665AE8DAA3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pass Through Error.png" alt="Pass Through Error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The odd thing is that using 'connect to' and redefining the connection works:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
  connect to SYBASE(USER=[ID]
                    PASSWORD=[PASSWORD]
                    SERVER=[SERVER]
                    DATABASE=[DATABASE]);
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Has anyone experienced this sort of issue with SAS/Access for Sybase before? This is all running on SAS 9.4 M2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 11:16:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-to-Sybase-error-when-using-Connect-Using/m-p/582726#M17840</guid>
      <dc:creator>mpordon</dc:creator>
      <dc:date>2019-08-21T11:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS to Sybase error when using 'Connect Using'</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-to-Sybase-error-when-using-Connect-Using/m-p/582819#M17841</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/173354"&gt;@mpordon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a guess; I haven't tried this, but change the Libref Server to a different name. It looks like something could be getting discombobulated because of a reserved keyword.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myServ sybase USER=[ID] PASSWORD="[PASSWORD]" 
SERVER=[SERVER] 
DATABASE=[DATABASE] 
schema=dbo;

proc sql;
	Connect using myServ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best wishes,&lt;BR /&gt;Jeff&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 14:26:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-to-Sybase-error-when-using-Connect-Using/m-p/582819#M17841</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2019-08-21T14:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS to Sybase error when using 'Connect Using'</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-to-Sybase-error-when-using-Connect-Using/m-p/583151#M17843</link>
      <description>&lt;P&gt;Unfortunately that is not the problem. I had changed the name of the libref before posting the code just to make it as generic as possible. Normally it is the name of the actual server&amp;nbsp;that is not a reserved word.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 12:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-to-Sybase-error-when-using-Connect-Using/m-p/583151#M17843</guid>
      <dc:creator>mpordon</dc:creator>
      <dc:date>2019-08-22T12:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS to Sybase error when using 'Connect Using'</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-to-Sybase-error-when-using-Connect-Using/m-p/583241#M17844</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/173354"&gt;@mpordon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think your Sybase interfaces file is pointing to an incorrect server (or there is some other setup problem). There may be missing environment variables. You can try connecting with isql and it will probably give you the same error message.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a snippet from an interfaces file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MYSERVER
        master tcp ether myserver 5000
        query tcp ether myserver 5000

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Connecting with isql is a good test because it takes SAS out of the picture.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc35456.1570/html/ocspsunx/X33477.htm" target="_self"&gt;Link to the SAP doc describing isql&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure the environment variables are correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/installcenter/en/ikfdtnunxcg/66380/PDF/default/config.pdf" target="_self"&gt;SAS 9.4 Configuration Guide for Linux&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 15:58:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-to-Sybase-error-when-using-Connect-Using/m-p/583241#M17844</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2019-08-22T15:58:48Z</dc:date>
    </item>
  </channel>
</rss>

