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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

20 Using DQUOTE=ANSI 4 Chapter 2If you submit a <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statement withPRESERVE_TAB_NAMES=YES and then open the <strong>SAS</strong> Explorer window, you see adifferent listing of the Oracle tables and views that the MYDBLIB libref references.libname mydblib oracle user=testuser password=testpasspreserve_tab_names=yes;Display 2.2<strong>SAS</strong> Explorer Window Listing Case-Sensitive DBMS ObjectsNotice that there are 18 members listed, including one that is in lowercase and one thathas a name separated by a blank space. Because PRESERVE_TAB_NAMES=YES, <strong>SAS</strong>displays the tables names in the exact case in which they were created.Using DQUOTE=ANSIThe following example creates a DBMS table with a blank space in its name. Doublequotation marks are used to specify the table name, International Delays. Both of thepreserve names LIBNAME options are also set by using the aliasPRESERVE_NAMES=. Because PRESERVE_NAMES=YES, the schema airport is nowcase sensitive <strong>for</strong> Oracle.options linesize=64 nodate;libname mydblib oracle user=testuser password=testpass path=’airdata’schema=airport preserve_names=yes;proc sql dquote=ansi;create table mydblib."International Delays" asselect int.flight as "FLIGHT NUMBER", int.dates,del.orig as ORIGIN,int.dest as DESTINATION, del.delayfrom mydblib.INTERNAT as int,mydblib.DELAY as delwhere int.dest=del.dest and int.dest=’LON’;quit;proc sql dquote=ansi outobs=10;

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

Saved successfully!

Ooh no, something went wrong!