C H A P T E R  3

Language and Third-Party Product Support

This chapter describes issues related to the various languages supported by Sun MTP. It also includes information about some popular third-party products. The main topics are:


Language Support Information

See Qualified Compilers and Third-Party Software for information about supported versions.

COBOL Applications

This section contains information you need when using Micro Focus Server Express.

Working Mode

Server Express must run in 32-bit mode to interface with Sun MTP.

The Sun Mainframe Transaction Processing Software Installation Guide contains the following changes:

In Chapter 3, in the section "To Create a Setup File," Step 6 indicates that COBOL must run in 32-bit mode, and shows how to set the COBMODE environment variable.

Also in Chapter 3, in the section "To Prepare Your Environment," has been modified to include information about verifying that the COBOL working mode is 32-bit, and setting your environment to ensure that the working mode is 32-bit.

Server Express Licensing

If the Sun MTP region uses Server Express COBOL programs, you need to acquire application server (runtime) licenses that are transactable. This type of license ensures that there is no contention for a free license when a process using COBOL terminates.

C Applications

Sun MTP requires the C language package provided by the operating system vendor to be installed. On AIX, the package is typically installed at /usr/vac/bin.

To verify that your path points to the C for AIX compiler, type the following command:

$ which cc

If the command returns a directory path that points to a non-AIX C compiler, such as GNU or UCB (Berkeley), for example, /usr/ucb/cc, the kixinstall process will terminate. You must add the location of the C for AIX compiler to the beginning of your PATH statement. For example:

PATH=/usr/vac/bin:$UNIKIX/local/bin:$UNIKIX/bin:$PATH;export PATH

C Applications That Use the C-ISAM Interface

Sun MTP supports the use of the C-ISAM interface for C programs that access VSAM files, but that are not defined as region resources. Refer to the Sun Mainframe Transaction Processing Software Developer's Guide for detailed information on this topic. In the AIX environment, the command for compiling the C program is different than the command shown in Step 3 in the procedure "Compiling the C Language Program." The correct command for AIX users is:

$ cc input-filename.c -o output-filename $UNIKIX/lib/libbcisam.a -lcurses -brtl -L$UNIKIX/lib -lkxtables

C++ Applications

The Sun MTP application run unit is built using the C compiler and loader. If an application program is written in C++, you must use the C++ compiler (usually the CC command), and the required loader to build shared objects that can be loaded by the transaction servers. The include files in the $UNIKIX/src/CICS_structures directory are the same for both C and C++ programs.

For example, to build a C++ shared object from the acct00.ccs program, execute the following commands:

$ kixclt acct00.ccs
$ CC -Bdynamic -Kpic -c -Xt -I$UNIKIX/src/CICS_structures -o acct00.o acct00.c
$ ld -G -o acct00.so acct00.o


Third-Party Products

See Qualified Compilers and Third-Party Software for information about supported versions.

WebSphere MQ

The kixinstall utility enables the user to select client or server libraries when selecting MQ. On the Third Party Packages screen, if you select option 1, MQSeries, you are prompted to choose either client or server libraries.

Oracle

Sun MTP Release 8.0.1 supports the Oracle 9.2.0 client, and allows you to run the Oracle RDBMS on a C language-only platform.

You can now use the COBOL Oracle sample application with Oracle 9.2
32-bit, when 32-bit and 64-bit are installed.



Note - If both the 64-bit and 32-bit Oracle clients are installed, the default COBOL pre-compiler procob is 64-bit. The 32-bit version of the pre-compiler is procob32, which is the required pre-compiler for Sun MTP and Sun MBM.