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.

<strong>SAS</strong> Names and Support <strong>for</strong> DBMS Names 4 Preserving Table Names 19Preserving Table NamesThe following example uses PROC PRINT to print the DBMS table PAYROLL. TheDBMS table was created in uppercase and since PRESERVE_TAB_NAMES=YES, thetable name must be specified in uppercase. (If you set thePRESERVE_TAB_NAMES=NO, you can specify the DBMS table name in lowercase.) Apartial output follows the example.options nodate linesize=64;libname mydblib oracle user=testuser password=testpasspath=’ora8_servr’ preserve_tab_names=yes;proc print data=mydblib.PAYROLL;title ’PAYROLL Table’;run;Output 2.3DBMS Table with a Case-Sensitive NamePAYROLL TableObs IDNUM SEX JOBCODE SALARY BIRTH1 1919 M TA2 34376 12SEP1960:00:00:002 1653 F ME2 35108 15OCT1964:00:00:003 1400 M ME1 29769 05NOV1967:00:00:004 1350 F FA3 32886 31AUG1965:00:00:005 1401 M TA3 38822 13DEC1950:00:00:00The following example submits a <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statement and then opensthe <strong>SAS</strong> Explorer window, which lists the Oracle tables and views that are referencedby the MYDBLIB libref. Notice that 16 members are listed and that all of the membernames are in the case (initial capitalization) that is set by the Explorer window. Thetable names are capitalized because PRESERVE_TAB_NAMES= defaulted to NO.libname mydblib oracle user=testuser pass=testpass;Display 2.1<strong>SAS</strong> Explorer Window Listing DBMS Objects

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

Saved successfully!

Ooh no, something went wrong!