OpenTP1 Version 7 Programming Reference COBOL Language

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

1.3.3 Creating stub source files for XATMI interface

Create a stub for the XATMI from the created XATMI interface definition file.

Before creating a stub, create a file (XATMI interface definition file) in which information about the XATMI interface is defined, and then execute one of the following stub creation commands:

Create stubs for the client and server UAPs in the following way:

Organization of this subsection
(1) Files created by the stbmake command or tpstbmk command

(1) Files created by the stbmake command or tpstbmk command

The following three files are created by executing the stbmake command (xxxxx is the XATMI interface definition file name minus the suffix.def):

(a) XATMI stub source file

The XATMI stub source file will be compiled with the C-language compiler and linked to the UAP object file.

(b) XATMI stub header file

The XATMI stub header file will be included in the UAP source file and XATMI stub source file.

(c) XATMI stub copy file

The created XATMI stub copy file is invoked by the COPY statement from UAPs written in COBOL. It makes typed records available.

The name of an XATMI stub copy file is up to 255 characters long. Note, however, that a lower upper limit is used under some OSs.

The file name and the directory containing the file can be changed using appropriate command options.