<?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: EG SAS ODBC in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177760#M13632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks you are needing the ODBC definition on the Server to be present. See also: &lt;A _jive_internal="true" href="https://communities.sas.com/thread/56280"&gt;https://communities.sas.com/thread/56280&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Apr 2014 11:45:06 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2014-04-14T11:45:06Z</dc:date>
    <item>
      <title>EG SAS ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177757#M13629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000099; font-family: 'Garamond','serif'; font-size: 12pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000099; font-family: 'Garamond','serif'; font-size: 12pt;"&gt;Attached is a program with log that I am trying to run again one of&lt;BR /&gt;the servers. It runs fine on PC SAS. But when I tried to run it on EG SAS, I am&lt;BR /&gt;a getting this error (see at the bottom): I don’t’ understand what this error&lt;BR /&gt;is all about.. Here what does "near 2 means"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: red; font-family: 'Courier New';"&gt;ERROR: CLI describe error: [Sybase][ODBC&lt;BR /&gt;Driver][Adaptive Server Enterprise]Incorrect syntax near '2'. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000099; font-family: 'Garamond','serif'; font-size: 12pt;"&gt;I would appreciate your help..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000099; font-family: 'Garamond','serif'; font-size: 12pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2014 14:51:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177757#M13629</guid>
      <dc:creator>AnnaShami</dc:creator>
      <dc:date>2014-04-12T14:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: EG SAS ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177758#M13630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Anna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first question is, is the SAS session that EG connects to on your local PC, or are you using a SAS process on a remote server to run this code? The debugging process will be different depending on the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2014 17:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177758#M13630</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2014-04-12T17:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: EG SAS ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177759#M13631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EG SAS is running on the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 11:27:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177759#M13631</guid>
      <dc:creator>AnnaShami</dc:creator>
      <dc:date>2014-04-14T11:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: EG SAS ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177760#M13632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks you are needing the ODBC definition on the Server to be present. See also: &lt;A _jive_internal="true" href="https://communities.sas.com/thread/56280"&gt;https://communities.sas.com/thread/56280&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 11:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177760#M13632</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-04-14T11:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: EG SAS ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177761#M13633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaap,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do have ODBC connections set up on the server. If I run a very simple query against that db, it works..also the steps before this SQL works where I am pointing to the same db. But it’s just I am getting this error message when I try to run this SQL. And I don't understand the error either.. Also this SQL runs fine on PC SAS. Doesn't look like anything wrong iwth the query. May there is something in thei query that EG doesn't like..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 12:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177761#M13633</guid>
      <dc:creator>AnnaShami</dc:creator>
      <dc:date>2014-04-14T12:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: EG SAS ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177762#M13634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using SQL server?: &lt;A href="http://support.microsoft.com/kb/273813"&gt;http://support.microsoft.com/kb/273813&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 12:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177762#M13634</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-04-14T12:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: EG SAS ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177763#M13635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at your log it appears to me that the connection string is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;411&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connect to odbc &amp;amp;facid; /* Chris DSN for FACETS is logidf */&lt;/P&gt;&lt;P&gt;SYMBOLGEN:&amp;nbsp; Macro variable FACID resolves to ("DSN=Reporting;" || "UID=xxxx;" || "PWD=xxxx;" || "SERVER=xxxx")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means SAS sees the following:&lt;/P&gt;&lt;P&gt;connect to odbc ("DSN=Reporting;" || "UID=xxxx;" || "PWD=xxxx;" || "SERVER=xxxx");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe it should be:&lt;/P&gt;&lt;P&gt;connect to odbc (DSN=Reporting UID=xxxx PWD=xxxx SERVER=xxxx);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 12:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177763#M13635</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-04-14T12:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: EG SAS ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177764#M13636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AnnaShami, that is a lot of information to think...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eguide is nothing more as a very good editor, it does not run the SAS code.&lt;/P&gt;&lt;P&gt;You can direct that code either to "local" or to a server "SASApp". When you send your code to 'local" that is your pc/desktop PC SAS, there is no difference at all.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Very sure this code runs unchanged when using "local' correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your included log is telling the code has run in a Windows environment (namings //../../), as you say the ODBC connection is working (DNS=). &lt;/P&gt;&lt;P&gt;To pinpoint to a cause eliminiate all those possible differences.&lt;/P&gt;&lt;P&gt;- which SAS version local and on the server&lt;/P&gt;&lt;P&gt;- which ODBC version local and on the server.&lt;/P&gt;&lt;P&gt;- What SAS options have been set. Special attention for those for the ODBC Access&amp;nbsp; &lt;/P&gt;&lt;P&gt;You are using explicit pass through, still you could activate a trace to see what is happening / getting better information&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/66787/HTML/default/viewer.htm#p1f29m86u65hken1deqcybowtgma.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/66787/HTML/default/viewer.htm#p1f29m86u65hken1deqcybowtgma.htm"&gt;SAS/ACCESS(R) 9.4 for Relational Databases: Reference, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 13:09:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177764#M13636</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-04-14T13:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: EG SAS ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177765#M13637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Patrick I think you are correct, the coding of facid looks to be copied from a data-set approach.&amp;nbsp; Here it macro-strings with %let.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 13:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177765#M13637</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-04-14T13:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: EG SAS ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177766#M13638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that &lt;A __default_attr="12296" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; is onto something. I would suggest that you test his hypothesis with some very simple code that would pull some data out of one of your tables using the pass-through syntax that you are trying to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without knowing anything about your database, I would use something like this to prevent putting any load on your environment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%LET facid=("DSN=Reporting;" || "UID=rp&amp;amp;UID.;" || "PWD=&amp;amp;pwd.;" || "SERVER=cbcfrpt00");&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;connect to odbc &amp;amp;facid;&lt;/P&gt;&lt;P&gt;create table work.TestOutput as select UMUM_REF_ID from CMC_UMUM_UTIL_MGT(obs=10);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get data back, it means that your macro variable is working correctly. If not, you'd need to tinker with your macro variable and connect statement until you get data back. Then you can proceed with your more complex statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 18:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/EG-SAS-ODBC/m-p/177766#M13638</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2014-04-16T18:18:12Z</dc:date>
    </item>
  </channel>
</rss>

