I'm looking for samples of how to code and compile a call of a stored procedure in a COBOL program? The stored procedure is delivered as part of a software package. No coding examples were provided in the documentation.
Software/Hardware used:
ASKED:
November 26, 2007 6:27 PM
UPDATED:
March 1, 2010 7:22 AM
It’s not clear what you need. The basic CALL for a stored proc:
exec-sql call storedProcName ( :inVar1,
utVar2 )
end-exec.Is that all you’re looking for? You CALL a stored proc in COBOL similar to how you’d do it in any HLL, with some syntax variations. In the above, there’s on COBOL variable that is an IN parameter to the stored proc, and there’s one OUT variable. The COBOL variables are inVar1 and outVar2 in that case.
Tom