The only option that you have is to
- not register the stored procedure, and
- use the parameter style DB2DARI
The consequence is that you would have to call the procedure this way:
Code:
CALL library!function(...)
I'm not sure if V8 still supports that mode. The DB2DARI parameter style is no longer supported (except for applications that require it for backward compatibility).
What I would do in your situation is to use a single table whose rows will describe the parameters that influence your procedure logic. The procedure scan over the table and does whatever it should do.