WHERE clause not being sent to the server via SAS ODBC

WHERE clause not being sent to the server via SAS ODBC

am 16.11.2007 20:35:15 von pardee.r

Greetings All,

Apologies if this isn't a proper forum for this question--I've asked on
the sas-l listserv & haven't had much response thus far.

SAS is a batch data manipulation programming environment that provides
conduits into lots of different types of data sources, including ODBC.
It has its own implementation of SQL, in which you can query external
data sources, combine them with native sas data, etc. It is usually
pretty smart about pushing WHERE conditions over to the db server where
it can, but to my dismay, it does not seem to be doing so with MySQL.
So when I run this sas code:

* ---------------------------------- ;

libname umls ODBC required =3D "Driver=3D{MySQL ODBC 3.51
Driver};Server=3Dmpe04n;Port=3D3306;Database=3Dumls;User=3Dr oy;Password=3D=
&roys_pw
d;Option=3D3;" DBMAX_TEXT =3D 8000 ;

proc sql ;
select cui, str as concept_name
from umls.mrconso
where cui =3D 'C0000768'
;
quit ;

* ---------------------------------- ;

I was shocked to find that it sent a "select * from mrconso" when I
looked in the MySQL Administrator. This is not usual behavior--if I ran
a simple query like that against mssql, oracle or sybase that WHERE
clause (and the field list for that matter) would get passed to the db.

That first statement--the libname, contains what is essentially a
connect string. I was thinking (hoping) that I have mis-specified that
somehow, and that adding some extra parameter (or changing the =
option=3D?)
would put things right.

Does anybody have any insight for me?

(In case it matters, I'm running both sas & the mysql server on
(different) windows xp machines.)

Many thanks in advance!

-Roy

Roy Pardee
Research Analyst/Programmer
Group Health Center For Health Studies (Cancer Research Network)
(206) 287-2078
Google Talk: rpardee

--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=3Dgcdmo-myodbc@m.gmane.o rg