Although it is not a subject of this topic, are more than three parameters for MULTIPLY_ALT supported?
MULTIPLY_ALT(A_QTY, B_QTY, C_QTY)
I couldn't find that support on manuals(DB2 for LUW, z/OS and iSeries).
Also, I tried on DB2 9.7.2 on Windows and failed:
Code:
------------------------------ Commands Entered ------------------------------
VALUES MULTIPLY_ALT(1 , 2 , 3);
------------------------------------------------------------------------------
SQL0440N No authorized routine named "MULTIPLY_ALT" of type "FUNCTION" having
compatible arguments was found. SQLSTATE=42884
------------------------------ Commands Entered ------------------------------
VALUES MULTIPLY_ALT(1 , 2);
------------------------------------------------------------------------------
1
------------------------
2.
1 record(s) selected.
------------------------------ Commands Entered ------------------------------
VALUES MULTIPLY_ALT( MULTIPLY_ALT(1 , 2) , 3 );
------------------------------------------------------------------------------
1
---------------------------------
6.
1 record(s) selected.