OpenTP1 Version 7 Programming Guide

[Contents][Index][Back][Next]

1.3.3 Compilation and linkage (when using a stub)

This subsection explains the procedure for compiling and linking created programs. The UAP is compiled and linked into an executable file. For details on the compilation and linkage procedure, see the applicable OpenTP1 Programming Reference manual.

Organization of this subsection
(1) Compilation
(2) Linkage
(3) Note

(1) Compilation

The following programs must be compiled:

Use the C language compiler to compile source programs written in C and the COBOL language compiler to compile source programs written in COBOL.

(2) Linkage

Compiled object files are linked to the OpenTP1 library and other necessary files. If a non-OpenTP1 resource manager is used, it must be linked to the library specified by the non-OpenTP1 resource manager. To use a non-OpenTP1 resource manager with the XA interface, link the library to the UAP by performing the following steps:

  1. Specify the resource manager identifier for the non-OpenTP1 resource manager in the trnmkobj command and execute this command to create a transaction control object file.
  2. Link the object file to the UAP.

(3) Note

If the OS is HP-UX, the bind mode for linkage must be specified as immediate. If an executable file created in another mode is used as an OpenTP1 UAP, the system operation is unpredictable. To check that the bind mode of the created UAP is immediate, use the chatr command of the OS.