My Oracle Support Banner

Cannot Build a COBOL Server Using DB2 UDB Statements (Doc ID 1387707.1)

Last updated on JANUARY 28, 2019

Applies to:

Oracle Tuxedo - Version: and later   [Release: 11g and later ]
Information in this document applies to any platform.


When building a TUXEDO server written in COBOL and implementing some DB2 UDB statements, buildserver command fails.

UDB stands for Universal Database which is a non-Oracle third-product (an IBM one).
DB2 UDB is a multi-user version of DB2 enabling to create and manage partitioned database environments.


Server to build is: CSDB2SRV.cbl
Service written in COBOL referring to DB2 UDB statements: CSDB2SRV
Command executed:
buildserver -k -C -s CSDB2SRV:CSDB2SRV -v -o CSDB2SRV -f CSDB2SRV.cbl -r DB2_XA

buildserver fails :

cobcc -I$TUXDIR/include -o CSDB2SRV BS-2ed7.c -L${TUXDIR}/lib CSDB2SRV.cbl -lcobatmis -ltux -lbuft -L${DB2DIR}/lib64 -ldb2 -lfml -lfml32 -lengine -ldl -lpthread



* Micro Focus SQL External Compiler Module for IBM DB2 UDB

* DB2-SQL precompiler (C) Copyright 1997-2010 Micro Focus (IP) Ltd.

CSDB2SRV.o: In function `CSDB2SRV_0x0':

CSDB2SRV.cbl:(.text+0x11cb): undefined reference to `cobdb264'

CMDTUX_CAT:1832: ERROR: can't execute cobcc -I$TUXDIR/include -o CSDB2SRV BS-2ed7.c -L${TUXDIR}/lib CSDB2SRV.cbl -lcobatmis -ltux -lbuft -L${DB2DIR}/lib64 -ldb2 -lfml -lfml32 -lengine -ldl -lpthread


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.