-26055 Either statement-id or cursor name (%s) is not defined
This error occurs when either statement-id or a cursor name is not
defined before attempting to use it. Make sure to either PREPARE
the statement-id or DECLARE the cursor before using it.
END FUNCTION
Above simplified version on the problem I'm having. I'm coming to the conclusion that prepared statements / cursors are only available in the procedure / function that they are defined?
Please tell me this is not true and what I'm doing wrong in order that i can prepare all my statements upfront and OPEN them at the desired point as I would do in a 4gl program?