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.

Threaded Reads 4 Generating Trace In<strong>for</strong>mation <strong>for</strong> Threaded Reads 55ORACLE:ORACLE:DBSLICEPARM option set and 3 threads were requestedNo application input on number of threads.ORACLE: Thread 2 contains 47619 obs.ORACLE: Thread 3 contains 47619 obs.ORACLE: Thread 1 contains 47619 obs.ORACLE: Threaded read enabled. Number of threads created: 3If you want to see the SQL that is executed during the threaded read, you can settracing to sastrace=’,,t,d’ and run the job again. This time the output will contain thethreading in<strong>for</strong>mation as well as all of the SQL statements processed by Oracle:ORACLE_9: Prepared:SELECT * FROM MYEMPS 418 data work.locemp;419 set trlib.MYEMPS(DBSLICEPARM=(ALL, 3));420 where STATE in (’GA’, ’SC’, ’NC’) and ISTENURE=0;421 run;ORACLE:ORACLE:DBSLICEPARM option set and 3 threads were requestedNo application input on number of threads.ORACLE_10: Executed:SELECT "HIREDATE", "SALARY", "GENDER", "ISTENURE", "STATE", "EMPNUM", "NUMCLASSES"FROM MYEMPS WHERE ( ( ("STATE" IN ( ’GA’ , ’NC’ , ’SC’ ) ) ) AND("ISTENURE" = 0 ) ) AND ABS(MOD("EMPNUM",3))=0ORACLE_11: Executed:SELECT "HIREDATE", "SALARY", "GENDER", "ISTENURE", "STATE", "EMPNUM", "NUMCLASSES"FROM MYEMPS WHERE ( ( ("STATE" IN ( ’GA’ , ’NC’ , ’SC’ ) ) ) AND("ISTENURE" = 0 ) ) AND ABS(MOD("EMPNUM",3))=1ORACLE_12: Executed:SELECT "HIREDATE", "SALARY", "GENDER", "ISTENURE", "STATE", "EMPNUM", "NUMCLASSES"FROM MYEMPS WHERE ( ( ("STATE" IN ( ’GA’ , ’NC’ , ’SC’ ) ) ) AND("ISTENURE" = 0 ) ) AND (ABS(MOD("EMPNUM",3))=2 OR "EMPNUM" IS NULL)ORACLE: Thread 2 contains 47619 obs.ORACLE: Thread 1 contains 47619 obs.ORACLE: Thread 3 contains 47619 obs.ORACLE: Threaded read enabled. Number of threads created: 3Notice that the Oracle engine used the EMPNUM column as a partitioning column.If a threaded read cannot be done either because all of the candidates <strong>for</strong>autopartitioning are in the WHERE clause, or because the table does not contain acolumn that fits the criteria, you will see a warning in your log. For example, the dataset below uses a WHERE clause that contains all possible autopartitioning columns:data work.locemp;set trlib.MYEMPS (DBLISCEPARM=ALL);where EMPNUM

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

Saved successfully!

Ooh no, something went wrong!