Skip to main content

syntax to call a stored procedure that returns a result set using oracle 11g procob

  • October 28, 2019
  • 1 reply
  • 0 views

What is the syntax to call a stored procedure that returns a result set?

 

using procob for oracle 11g

 

tried this:

EXEC SQL

      DECLARE C1_CSR CURSOR FOR

      CALL Package.procedure(field1, field2)     

END-EXEC.

----------------

EXEC SQL

      OPEN C1_CSR

END-EXEC.

---------

EXEC SQL

      FETCH C1_CSR INTO WS-RETURN-VALUE

END-EXEC.

 

 

 

1 reply

Chris Glazier
Forum|alt.badge.img+2
  • Moderator
  • 3697 replies
  • October 28, 2019

What is the syntax to call a stored procedure that returns a result set?

 

using procob for oracle 11g

 

tried this:

EXEC SQL

      DECLARE C1_CSR CURSOR FOR

      CALL Package.procedure(field1, field2)     

END-EXEC.

----------------

EXEC SQL

      OPEN C1_CSR

END-EXEC.

---------

EXEC SQL

      FETCH C1_CSR INTO WS-RETURN-VALUE

END-EXEC.

 

 

 

Pro*COBOL is not a Micro Focus product so we do not document it. Pro*COBOL is an Oracle product and you can find the documentation for it here:

If you search for "stored procedure" within the text you will find an explanation and an example.