Skip to main content

I have a SQL stored procedure that requires one input value and returns 2 output values. How do I code this in Visual Cobol?

I have a SQL stored procedure that requires one input value and returns 2 output values. How do I code this in Visual Cobol?

Hello,

In Visual COBOL, you would invoke a Stored Procedure using a CALL statement in an EXEC SQL block. Please see this link for documentation of this statement, including examples of specifying which parameters are input vs output.

Also, here is a link to a video that discusses this topic in more detail:

OpenESQL Calling Stored Procedures