Div (Mod) function usage in DataStage job
Posted: Thu Oct 28, 2010 7:21 am
Hi all 
I am creating a server job and have encountered the below error message when debugging:
[IBM][CLI Driver][DB2/NT] SQL0440N No authorized routine named "DIV" of type "FUNCTION" having compatible arguments was found. SQLSTATE=42884
Here is the piece of code for the SQL statement using DIV function:
SELECT ...
FROM ...
WHERE PERIOD > ( ( DIV(#p_PERIOD# , 100) - 1) * 100 + MOD(#p_PERIOD# , 100) )
(p_PERIOD is declared as one of the parameters in Job properties)
Any ideas and/or instructions to previous related posts would be very much appreciated!
Many thanks,
SB
I am creating a server job and have encountered the below error message when debugging:
[IBM][CLI Driver][DB2/NT] SQL0440N No authorized routine named "DIV" of type "FUNCTION" having compatible arguments was found. SQLSTATE=42884
Here is the piece of code for the SQL statement using DIV function:
SELECT ...
FROM ...
WHERE PERIOD > ( ( DIV(#p_PERIOD# , 100) - 1) * 100 + MOD(#p_PERIOD# , 100) )
(p_PERIOD is declared as one of the parameters in Job properties)
Any ideas and/or instructions to previous related posts would be very much appreciated!
Many thanks,
SB