Highlighted
Absent Member.
Absent Member.
1328 views

CALL Stored Procedure

Jump to solution

Dear Chris,

Do you see any ERROR in the following ?.I am CALL a Stored Procedure  in a Cobol Program.

EXEC SQL

               CALL :PROCNAME USING DECLARATOR :COSCMNPRD

END-EXEC

IF SQLCODE NOT = ZEROS

                      DISPLAY "ERROR EN LA INVOCACION DE LA STORE PROCEDURE"

                      GOBACK.

Compiling SFISERB991C.CBL...

[cobol] 317 GOBACK.

[cobol] COBCH0077S Unexpected end of source within EXEC : C:\Users\Pedro\workspace\CoreRipley\PROGRAMAS\SFISERB991C.CBL(173,7,7)

[cobol] Compilation complete with 1 errors, 0 warnings, 0 notices and an exit code of 12

Pedro Juan Montero Bernales

PJM Informatica Soluciones Globales

Santiago - Chile

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: CALL Stored Procedure

Jump to solution

Hi Pedro,

This does not appear to be valid OpenESQL syntax for the exec sql call statement. Where did that syntax originate?

Please see the documentation here for examples.

There is also a video which covers this in more detail:

OpenESQL Calling Stored Procedures

View solution in original post

0 Likes
1 Reply
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: CALL Stored Procedure

Jump to solution

Hi Pedro,

This does not appear to be valid OpenESQL syntax for the exec sql call statement. Where did that syntax originate?

Please see the documentation here for examples.

There is also a video which covers this in more detail:

OpenESQL Calling Stored Procedures

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.