OpenTP1 Version 7 Programming Reference C 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.

To create a stub, create a file (XATMI interface definition file) that defines an XATMI interface, then execute a stub creation command. The following commands create a stub:

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 command (xxxxx is the XATMI interface definition file name minus the suffix .def):

The file name can have up to 255 characters. However, the name that can be specified may be shorter than 255 characters due to OS restrictions.

The directory in which a file is created, and the file name can be changed by a command option.

(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 file is used not in a UAP written in C, but rather in a UAP written in COBOL.