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.

410 <strong>SAS</strong>TRACE= System Option 4 Chapter 12options sastrace=’,,,d’ sastraceloc=saslog;proc print data=mydblib.snow_birthdays;run;Here is the resulting log.0 1349792597 sastb_next 2930 PRINTORACLE_5: Prepared: 1 1349792597 sastb_next 2930 PRINTSELECT * FROM scott.SNOW_BIRTHDAYS 2 1349792597 sastb_next 2930 PRINT3 1349792597 sastb_next 2930 PRINT16 proce print data=mydblib.snow_birthdays; run;4 1349792597 sastb_next 2930 PRINTORACLE_6: Executed: 5 1349792597 sastb_next 2930 PRINTPrepared statement ORACLE_5 6 1349792597 sastb_next 2930 PRINT7 1349792597 sastb_next 2930 PRINTHowever, by using NOSTSUFFIX, the log file becomes much easier to read.options sastrace=’,,,d’ sastraceloc=saslog nostsuffix;proc print data=mydblib.snow_birthdays;run;Here is the resulting log.ORACLE_1: Prepared:SELECT * FROM scott.SNOW_BIRTHDAYS12 proc print data=mydblib.snow_birthdays; run;ORACLE_2: Executed:Prepared statement ORACLE_1ExamplesThese examples use NOSTSUFFIX and <strong>SAS</strong>TRACELOC=<strong>SAS</strong>LOG and are based onthis data set:data work.winter_birthdays;input empid birthdat date9. lastname $18.;<strong>for</strong>mat birthdat date9.;datalines;678999 28DEC1966 PAVEO JULIANA 3451456788 12JAN1977 SHIPTON TIFFANY 3468890123 20FEB1973 THORSTAD EDVARD 3329;run;Example 1: SQL Trace ’,,,d’options sastrace=’,,,d’ sastraceloc=saslog nostsuffix;libname mydblib oracle user=scott password=tiger schema=bday_data;data mydblib.snow_birthdays;set work.winter_birthdays;run;libname mydblib clear;

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

Saved successfully!

Ooh no, something went wrong!