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.

Per<strong>for</strong>mance Considerations 4 Pushing Updates 39General Temporary Table UseFollow these steps to use temporary tables on the DBMS.1 Establish a global connection to the DBMS that persists across <strong>SAS</strong> procedure andDATA step boundaries.2 Create a DBMS temporary table and load it with data.3 Use the DBMS temporary table with <strong>SAS</strong>.Closing the global connection causes the DBMS temporary table to close as well.Pushing Heterogeneous JoinsFollow these steps to push heterogeneous joins to the DBMS.1 Establish a global connection to the DBMS that persists across <strong>SAS</strong> procedure andDATA step boundaries.2 Create a DBMS temporary table and load it with data.3 Per<strong>for</strong>m a join on the DBMS using the DBMS temporary and DBMS permanenttables.4 Process the result of the join with <strong>SAS</strong>.Pushing UpdatesFollow these steps to push updates (process transactions) to the DBMS.1 Establish a global connection to the DBMS that persists across <strong>SAS</strong> procedure andDATA step boundaries.2 Create a DBMS temporary table and load it with data.3 Issue SQL that uses values in the temporary table to process against theproduction table.4 Process the updated DBMS tables with <strong>SAS</strong>.Although these processing scenarios are purposely generic, they apply to each DBMSthat supports temporary tables. For details, see the “DBMSTEMP= LIBNAME Option”on page 131.

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

Saved successfully!

Ooh no, something went wrong!