13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

674 Passing <strong>SAS</strong> Functions to ODBC 4 Chapter 23output;itemnum=’12007’;item=’nails’;quantity=500;output;run;proc append base=samples.inventory data=samples.’#new’n;run;proc print data=samples.inventory;run;The following example demonstrates the use of a temporary table using the SQLpass-through facility.proc sql;connect to odbc as test (dsn=lupinss uid=dbitestpwd=dbigrp1 connection=shared);execute (create table #FRANCE (flight char(3), dates datetime,dest char(3))) by test;execute (insert #FRANCE select flight, dates, dest from internatwhere dest like ’%FRA%’) by test;select * from connection to test (select * from #FRANCE);quit;Passing <strong>SAS</strong> Functions to ODBC<strong>SAS</strong>/<strong>ACCESS</strong> Interface to ODBC passes the following <strong>SAS</strong> functions to the datasource <strong>for</strong> processing if the DBMS server supports this function. Where the ODBCfunction name differs from the <strong>SAS</strong> SQL function name, the ODBC name appears inparentheses. For more in<strong>for</strong>mation, see “Passing Functions to the DBMS Using PROCSQL” on page 42.ABSARCOSARSINATANAVGCEILCOSCOUNTEXPFLOORLOGLOG10LOWCASEMAXMIN

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!