I'm currently working on an AS400 machine to create a stored procedure which accepts a string array as an input argument. My code is as follow:
CREATE TYPE stringArray as VARCHAR(100) array[100]
CREATE PROCEDURE ALI/LWRH_SP
(
IN list stringArray
)
LANGUAGE SQL
BEGIN
--TO DO SOME WORK
END
Unfortunately, when I run the mentioned code, the system gives me an error:
SQL0104: token array was not valid. valid tokens:END-OF-STATEMENT
Does anyone know how I can manage this error?