>>--EXEC SQL--.--------------------.--.----------------.-> +-FOR :host_integer--+ +- :result_hvar -+ >---CALL stored_procedure_name-.------------.-END-EXEC->< | +-- , --+ | | V | | +(parameter)-+
>>--EXEC SQL---CALL function_name (parm_list)---> >---INTO---:result_hvar---END-EXEC-><
Do not use the FOR clause if the CALL is part of a DECLARE CURSOR statement.
EXEC SQL CALL myProc(param1,param2) END-EXEC
EXEC SQL CALL myProc (namedParam=:paramValue) END-EXEC
EXEC SQL :myResult = CALL myFunction(namedParam=:paramValue) END-EXEC