<?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: connection to DB in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/connection-to-DB/m-p/21255#M4487</link>
    <description>I think that your error is that you are missing a "connection to" clause in the first select statement.  Without it, SAS thinks that BDMIS is a SAS dataset in the WORK library.  I would have expected this to have failed the same way on Windows.&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
connect to sqlsvr as BDMIS (datasrc="BDMIS" user=sasuser password=XXXXXXX);&lt;BR /&gt;
create table temp4.FACT_BASE as&lt;BR /&gt;
select * from connection to BDMIS&lt;BR /&gt;
(SELECT * FROM FACT_BASE&lt;BR /&gt;
WHERE &amp;amp;wherefmt);&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
The database specific syntax is described in the SAS Access documentation.  This code uses the "pass thru" syntax for SQL.&lt;BR /&gt;
&lt;BR /&gt;
Did you get an error on the "connect to" statement? If so, you may have a bigger problem.  Microsoft SQLserver is only supported via the ODBC connectivity in SAS 8.2 and above.  So a simple copy of the program to Solaris will not get you running.  You will also need the SAS/Access to ODBC product for Solaris and the appropriate system connections to get to the SQLserver database.  [If you are connecting to the Sybase product, you may be OK.]</description>
    <pubDate>Wed, 28 May 2008 19:01:21 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2008-05-28T19:01:21Z</dc:date>
    <item>
      <title>connection to DB</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/connection-to-DB/m-p/21254#M4486</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I use this code but I don't understand what it really does. It was written by someone in windows enviroment and now we changed to solaris(UNIX). I am not very clear with solaris(UNIX) syntax. Can someone explain to me what it says: &lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
connect to sqlsvr as BDMIS (datasrc="BDMIS" user=sasuser password=XXXXXXX);&lt;BR /&gt;
create table temp4.FACT_BASE as&lt;BR /&gt;
         select * from BDMIS&lt;BR /&gt;
          (SELECT * FROM FACT_BASE&lt;BR /&gt;
       	WHERE &amp;amp;wherefmt);&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Invalid option name SELECT.&lt;BR /&gt;
ERROR: Some options for file WORK.BDMIS were not processed because of errors or warnings noted above.</description>
      <pubDate>Wed, 28 May 2008 14:09:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/connection-to-DB/m-p/21254#M4486</guid>
      <dc:creator>12345</dc:creator>
      <dc:date>2008-05-28T14:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: connection to DB</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/connection-to-DB/m-p/21255#M4487</link>
      <description>I think that your error is that you are missing a "connection to" clause in the first select statement.  Without it, SAS thinks that BDMIS is a SAS dataset in the WORK library.  I would have expected this to have failed the same way on Windows.&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
connect to sqlsvr as BDMIS (datasrc="BDMIS" user=sasuser password=XXXXXXX);&lt;BR /&gt;
create table temp4.FACT_BASE as&lt;BR /&gt;
select * from connection to BDMIS&lt;BR /&gt;
(SELECT * FROM FACT_BASE&lt;BR /&gt;
WHERE &amp;amp;wherefmt);&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
The database specific syntax is described in the SAS Access documentation.  This code uses the "pass thru" syntax for SQL.&lt;BR /&gt;
&lt;BR /&gt;
Did you get an error on the "connect to" statement? If so, you may have a bigger problem.  Microsoft SQLserver is only supported via the ODBC connectivity in SAS 8.2 and above.  So a simple copy of the program to Solaris will not get you running.  You will also need the SAS/Access to ODBC product for Solaris and the appropriate system connections to get to the SQLserver database.  [If you are connecting to the Sybase product, you may be OK.]</description>
      <pubDate>Wed, 28 May 2008 19:01:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/connection-to-DB/m-p/21255#M4487</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2008-05-28T19:01:21Z</dc:date>
    </item>
  </channel>
</rss>

