A. Building CICS/6000 Programs on UNIX : How You Add COBOL Support : Step 1: Create an Exports List for the Ingres Library
 
Share this page                  
Step 1: Create an Exports List for the Ingres Library
You must create an exports list that contains a list of Ingres symbols that enables the binding of the Ingres shared libraries into the COBOL Run Time System.
To create the exports list
1. Log in as the installation owner.
2. At the operating system prompt, issue the following commands:
echo “#!libcompat.1.a(libcompat.1.o)” > libingres.1.exp
/usr/ucb/nm -p $II_SYSTEM/ingres/lib/libcompat.1.a | \
awk ' $2==”D”||$2==”B” { print $3 } ' | \
sort -u >> libingres.1.exp
echo “#!libq.1.a(libq.1.o)” >> libingres.1.exp
/usr/ucb/nm -g $II_SYSTEM/ingres/lib/libq.1.a | \
awk ' $2==”D”||$2==”B” { print $3 } ' | \
sort -u >> libingres.1.exp
echo “#!libframe.1.a(libframe.1.o)” >> libingres.1.exp
/usr/ucb/nm -g $II_SYSTEM/ingres/lib/libframe.1.a | \
awk ' $2==”D”||$2==”B” { print $3 } ' | \
sort -u >> libingres.1.exp
The preceding commands extract symbol table information, remove unnecessary entries, filter out the name column, and sort the resulting list. The exports list will now exist in the current directory where the commands were issued. The following steps assume that the exports list resides in the $II_SYSTEM/ingres/lib directory.