This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Calling a sql server store prodcedure from AcuCOBOL

Hi,

I created a stored procedure in sql server, and trying to call it from AcuCOBOL but getting this error:

Could not find stored procedure 'sp_test'    42000

It does exist in sql server, with all rights granted.

Calling code looks like this:

EXEC SQL

  DECLARE CURSOR-SP CURSOR FOR

    :ret-code = exec sp_test

END-EXEC

It's a bit confusing as 42000 means acuodbc driver expected, but I'm using the acusql driver, not ODBC

  • Suggested Answer

    0  

    Good morning, Mr.  .

    Have you searched this Community for other situations like yours?

    For example, there's an article here that may help you.

    It's a bit aged, but it gives useful information.

    If it does not help, please contact Customer Support, providing information about the version of AcuSQL you're using.

    A local engineer will help you with the investigation of the error.

    Claudio Contardi

    Lead Technical Support Specialist
    Rocket Software, Italia
    RocketSoftware.com
    linkedin.com/rocket-software