Hello everyone,
I have written a simple calculation procedure.
CREATE PROCEDURE _SYS_BIC.calculation(IN value1 decimal(15,4), IN value2 DECIMAL(15,4), OUT result_value decimal(20,4))
LANGUAGE SQLSCRIPT
SQL SECURITY INVOKER
READS SQL DATA AS
BEGIN
declare a decimal(15,4);
declare b decimal(15,4);
declare result_value decimal(20,4);
a := :value1;
b := :value2;
result_value := (:b)/(:a/100);
END;
And I run the procedure with the following statement:
call "_SYS_BIC"."claims.dev_test/calculation" (value1 => 10, value2 => 2, result_value => (?))
I get the result as "?".
For me everything seems to be fine. Can anyone suggest me the cause for the error.
Thanks