3. Embedded SQL for COBOL : Preprocessor Operation : How to Incorporate Ingres into the Micro Focus RTS—UNIX : How to Build an RTS with the Ingres FRS
 
Share this page                  
How to Build an RTS with the Ingres FRS
If you are using the Ingres forms system in your embedded SQL/COBOL programs then you must include the Ingres FRS in the RTS. The link script shown below builds an RTS that includes the Ingres FRS:
#
# Optional: Assume you are in an appropriate directory
# as described in the previous section.
#
cd /usr/lib/cobol/ingres
#
# Extract 3 Ingres Micro Focus support modules
#
ar xv $II_SYSTEM/ingres/lib/libingres.a iimfdata.o
ar xv $II_SYSTEM/ingres/lib/libingres.a iimflibq.o
ar xv $II_SYSTEM/ingres/lib/libingres.a iimffrs.o
#
# Now link the new Ingres COBOL RTS (this example
# calls it "ingfrs")
#
cob -x -e "" -o ingfrs \
  iimfdata.o iimflibq.o iimffrs.o \
  $II_SYSTEM/ingres/lib/libingres.a \
  -lc -lm
#
# Provide an alias to run the new program
# (distribute to RTS users)
#
alias ingfrs /usr/lib/cobol/ingfrs
You may be required to specify other system libraries on the cob command line. For information about how to specify other system libraries on the cob command line, see How to Build an Ingres RTS without the Ingres FRS (see page How to Build an Ingres RTS without the Ingres FRS) in this chapter.