APIs interface

Top  Previous  Next

XBM provides some of the JCL interface features to user programs by means of its C interface library: libxbm. This library must be linked with or dynamically loaded by those programs which are going to use the XBM C APIs.

One or two libraries are provided for each operating system/architecture: libxbm (32bit library) and libxbm64 (64bit library). These libraries are located in:

$XBMHOME/lib/<os>/<arch>

Where <os> is the operating system and <arch> is the cpu architecture.

I.e, to link on an IA32 Linux system:

cc -o mypgm mypgm.c -L $XBMHOME/lib/linux/ia32 -lxbm

I.e, to dynamically load the library in the XFRAME environment and use it from a COBOL program on an AIX system:

setenv XRUN_LIBRARIES "$XBMHOME/lib/aix/ppc/libxbm.so"
xrun COBPGM