DSNXRARI

DSNXRARI is part of the relational data systems component of DB2 and is involved in run-time arithmetic processing.

Hints

Module DSNXRARI appears when an SQL statement includes calculations. Analyze SQL to ensure that calculations are performed as infrequently as possible.

The following example sums the values of COL1 and divides the result by 12:

 

SELECT SUM(COL1/12)

FROM TABLEA

As coded, this statement requires DB2 to calculate the value of COL1/12 for each row on TABLEA while applying the SUM column function to the expression's result. Recoding the statement as follows allows DB2 to calculate the sum of the values in COL1 once, and then divide that value by 12.

 

SELECT SUM(COL1)/12

FROM TABLEA