Hi Heiko,
This is the sort of code that takes down PB12.6 on the CLOSE statement, both in runtime and debug:
DECLARE proc_abc PROCEDURE FOR sp_abc
argYear = :al_year
argReturn = :as_name;
EXECUTE proc_abc;
CLOSE proc_abc;
Not sure about cursors (yet)
Lars