Skip to main content

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

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

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