3. Embedded QUEL for COBOL : Precompiling, Compiling, and Linking an EQUEL Program : Incorporating Ingres into the Micro Focus RTS--UNIX
 
Share this page                  
Incorporating Ingres into the Micro Focus RTS--UNIX
Before you can run any EQUEL/COBOL program, you must create a new Micro Focus Runtime System (RTS), linked with the Ingres libraries. This will enable your EQUEL/COBOL programs to access the necessary Ingres routines at runtime.
If you are not sure your COBOL RTS is linked to the Ingres libraries, you can perform a simple test. Preprocess, compile, and run a simple EQUEL/COBOL program that connects and disconnects from Ingres. For example, the simple test file "test.qcb" could include the lines:
## INGRES dbname
## EXIT dbname
If your COBOL RTS is not linked to the Ingres libraries, you will receive the COBOL runtime error number 173 when you run the program:
$ eqcbl test.qcb
$ cob test.cbl
$ cobrun test
    Load error: file 'IIingopen'
    error code: 173, pc=1A, call=1, seg=0
    173  Called program file not found in drive/directory
Note:  Check the Readme file for any operating system specific information on compiling and linking ESQL/COBOL programs.