Skip to main content

[archive] Calling Stored Procedures

  • June 17, 2012
  • 0 replies
  • 0 views

[Migrated content. Thread originally posted on 18 March 2003]

Hi, I am new to Acucorp's products - I am accessing MS SQL using AcuSQL, and I have not been able to successfully pre-compile my Cobol pgm with a call to a stored procedure. I obviously do not have either the syntax right, or do not have the precompiler options set correctly.
I am precompiling as follows:
\\\\dir01\\acusql521\\ACUSQL.EXE -Pk MSSQL mysrcesq.cob -Pr mysrcegt.cob

and the call to my stored procedure looks like:

EXEC SQL CALL pGETNEXT
:PTBL-SQL,
:TBL-SQL,
:NUM-SQL,
:optbl OUTPUT,
:otbl OUTPUT,
:onbr OUTPUT,
:oname OUTPUT,
:oprompt OUTPUT,
:ofile OUTPUT,
:oactive OUTPUT,
:oStatus OUTPUT
END-EXEC.

When I precompile the source file, I get 'parse error at :PTBL-SQL'

Does anyone have any idea what I am doing wrong??
Thanks!
Patti

0 replies

Be the first to reply!