3. Embedded QUEL for COBOL : Precompiling, Compiling, and Linking an EQUEL Program : Incorporating Ingres into the Micro Focus RTS—UNIX : The COBOL Runtime System
 
Share this page                  
The COBOL Runtime System
To compile the code produced by the preprocessor, use the Micro Focus cob command.
The following example preprocesses and compiles the file "test1."
$ eqcbl test1.qbc
$ cob test1.cbl
When you use the cob command to compile the generated COBOL code using the cob command, the compiler issues the following informational message:
       01 III4-1 PIC S9(9) USAGE COMP-5 SYNC VALUE 0.
**209-I**********************************************
**     COMP-5 is machine specific format.
COMP-5 is an Ingres-compatible numeric data type (see COBOL Variables and Data Types), and a data item of that type is included in the Ingres system COPY file. You can ignore this warning or you can suppress it using the cob compiler directive or command line flag:
cob -C warning=1
Also, because the program will be run through the COBOL interpreter that is linked to the Ingres runtime system, do not modify the default values of the COBOL compiler align and ibmcomp directives. To run your EQUEL/COBOL test program, use the ingrts command (an alias to your Ingres-linked RTS):
ingrts test1
For more information on building and linking the Interpreter (or RTS), see Incorporating Ingres into the Micro Focus RTS—UNIX.