The final statement in the procedure is not a RETURN statement.
10
Cause . . . . . : For procedures returning a value, if the last statement executed is not a RETURN statement, an exception will be issued at runtime.
Recovery . . . : Remove superfluous statements following the last RETURN operation, or add a RETURN operation as the last statement in the procedure. Compile again.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.