Problem:
Execution of my Pro*COBOL application fails with RTS173 against ORASQL8
Execution of my Pro*COBOL application fails with RTS173 against SQLADR
Resolution:
For information regarding byte ordering issues on Intel-based platforms, refer to Knowledge Base Article #3957.
The Oracle COBOL precompiler, Pro*COBOL, embeds a call to ORASQL8 into your application when your host program contains a SQL CONNECT statement.
Using Pro*COBOL from the command-line -- as documented by Oracle -- you should link the application to executable, pulling in ORASQLx.LIB , where x is the Oracle version number (8, 9, 10). This library resolves the ORASQL8 function, and the application will run.
NOTE: Per the batch file makeit.bat provided by Oracle for building their COBOL samples under precomp\\demo\\procob2 you must compile/generate your COBOL application with the LITLINK directive.
Using Cobsql however, you will be able to execute the user application in intermediate (.int) or generated (.gnt) code, removing the need to link the application to executable (.exe).

