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.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 Under z/OS 4 Methods <strong>for</strong> Improving Per<strong>for</strong>mance 507proc db2util data=trans table=testid.employees function=u;mapto ext=phone;where empid=%empno;update;run;The row that includes EMPID=320001 is not found in the Testid.Employees table andis there<strong>for</strong>e not updated. You can ignore the warning in the <strong>SAS</strong> log.Maximizing DB2 Under z/OS Per<strong>for</strong>manceAssessing When to Tune Per<strong>for</strong>manceAmong the factors that affect DB2 per<strong>for</strong>mance are the size of the table that is beingaccessed and the <strong>for</strong>m of the SQL SELECT statement. If the table that is being accessedis larger than 10,000 rows (or 1,000 pages), you should evaluate all <strong>SAS</strong> programs thataccess the table directly. When you evaluate the programs, consider these questions.3 Does the program need all columns that the SELECT statement retrieves?3 Do the WHERE clause criteria retrieve only those rows that are needed <strong>for</strong>subsequent analysis?3 Is the data going to be used by more than one procedure in one <strong>SAS</strong> session? If so,consider extracting the data into a <strong>SAS</strong> data file <strong>for</strong> <strong>SAS</strong> procedures to use insteadof allowing the data to be accessed directly by each procedure.3 Do the rows need to be in a particular order? If so, can an indexed column be usedto order them? If there is no index column, is DB2 doing the sort?3 Do the WHERE clause criteria allow DB2 to use the available indexes efficiently?3 What type of locks does DB2 need to acquire?3 Are the joins being passed to DB2?3 Can your DB2 system use parallel processing to access the data more quickly?In addition, the DB2 Resource Limit Facility limits execution time of dynamic SQLstatements. If the time limit is exceeded, the dynamic statement is terminated and theSQL code -905 is returned. This list describes several situations in which the RLF couldstop a user from consuming large quantities of CPU time.3 An extensive join of DB2 tables with the <strong>SAS</strong> SQL procedure.3 An extensive search by the FSEDIT, FSVIEW, or FSBROWSE procedures or anSCL application.3 Any extensive extraction of data from DB2.3 An extensive select.3 An extensive load into a DB2 table. In this case, you can break up the load bylowering the commit frequency, or you can use the bulk-load facility through<strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 under z/OS.Methods <strong>for</strong> Improving Per<strong>for</strong>manceYou can do several things in your <strong>SAS</strong> application to improve DB2 engineper<strong>for</strong>mance.

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

Saved successfully!

Ooh no, something went wrong!