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.

Macro Variables and System Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 <strong>SAS</strong>TRACE= System Option 411Output is written to the <strong>SAS</strong> log, as specified in the <strong>SAS</strong>TRACELOC=<strong>SAS</strong>LOG option.Output 12.2<strong>SAS</strong> Log Output from the <strong>SAS</strong>TRACE= ’,,,d’ System Option30 data work.winter_birthdays;31 input empid birthdat date9. lastname $18.;32 <strong>for</strong>mat birthdat date9.;33 datalines;NOTE: The data set WORK.WINTER_BIRTHDAYS has 3 observations and 3 variables.NOTE: DATA statement used (Total process time):real time0.03 secondscpu time0.04 seconds37 ;38 run;39 options sastrace=’,,,d’ sastraceloc=saslog nostsuffix;40 libname mydblib oracle user=scott password=XXXXX schema=bday_data;NOTE: Libref MYDBLIB was successfully assigned as follows:Engine: ORACLEPhysical Name:41 proc delete data=mydblib.snow_birthdays; run;ORACLE_1: Prepared:SELECT * FROM SNOW_BIRTHDAYSORACLE_2: Executed:DROP TABLE SNOW_BIRTHDAYSNOTE: Deleting MYDBLIB.SNOW_BIRTHDAYS (memtype=DATA).NOTE: PROCEDURE DELETE used (Total process time):real time0.26 secondscpu time0.12 seconds42 data mydblib.snow_birthdays;43 set work.winter_birthdays;44 run;ORACLE_3: Prepared:SELECT * FROM SNOW_BIRTHDAYSNOTE: <strong>SAS</strong> variable labels, <strong>for</strong>mats, and lengths are not written to DBMS tables.ORACLE_4: Executed:CREATE TABLE SNOW_BIRTHDAYS(empid NUMBER ,birthdat DATE,lastname VARCHAR2 (18))ORACLE_5: Prepared:INSERT INTO SNOW_BIRTHDAYS (empid,birthdat,lastname) VALUES(:empid,TO_DATE(:birthdat,’DDMONYYYY’,’NLS_DATE_LANGUAGE=American’),:lastname)NOTE: There were 3 observations read from the data set WORK.WINTER_BIRTHDAYS.ORACLE_6: Executed:Prepared statement ORACLE_5ORACLE: *-*-*-*-*-*-* COMMIT *-*-*-*-*-*-*NOTE: The data set MYDBLIB.SNOW_BIRTHDAYS has 3 observations and 3 variables.ORACLE: *-*-*-*-*-*-* COMMIT *-*-*-*-*-*-*NOTE: DATA statement used (Total process time):real time0.47 secondscpu time0.13 seconds

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

Saved successfully!

Ooh no, something went wrong!