Highlighted
Absent Member.
Absent Member.
1335 views

Sqlcode 1403/1405

Hello,

I use VisualCobol with a ado.net connection to oracle.  In my programs the test of end of fetch is 1403 but ado.net returns 100  How can I the sql mode to oracle?  Now i must change the test from 1403 to 100

Kind regards

Arno Noomen

0 Likes
1 Reply
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Sqlcode 1403/1405

Hi Arno,

Beginning with Visual COBOL V2.3 we added the directive SQL(PROCOB) for programs compiled to managed code using DBMAN=ADO. This will provide better compatibility with applications that used to run with Oracles Pro*COBOL precompiler.

Setting SQL(PROCOB) now also sets SQL(CHECKSINGLETON). When SQL(PROCOB) is set, OpenESQL error codes in the SQLCA are converted to Pro*COBOL-compatible error codes, which are controlled by a new file, mfpcocds.txt. This file is delivered in %ProgramData%\Micro Focus\SQLCODES by default.

Please see the full documentation for the PROCOB directive here:

Thanks

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.