OpenTP1 Version 7 User's Guide
This section explains the sample programs for OpenTP1 for Windows in terms of the differences from OpenTP1 for UNIX for each development language. For details about the sample programs themselves, see the OpenTP1 series manuals.
- Organization of this section
- (1) In C language
- (2) In COBOL
(1) In C language
The C language sample programs have the following differences from those for OpenTP1 for UNIX:
- The names of user service definition files for individual sample programs that are located in %DCDIR%\examples\base\conf are bsespp_c (SPP) and bsesup_c (SUP). Specify these file names in the argument of the dcsvstart command when you start the sample programs.
- OpenTP1 for Windows does not support the commands chconf (definition file change command) and bkconf (command for undoing the change made by chconf) that are provided in OpenTP1 for UNIX.
- If you use Visual Studio to create sample programs, the following message might be displayed:
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with another library. Use /NODEFAULTLIB:library.
If this message is displayed, use the /NODEFAULTLIB option and make sure that only the msvcrt.lib runtime library is linked. If multiple types of runtime libraries are linked, the resulting program might not function as designed.
(2) In COBOL
The COBOL sample programs have the following differences from those for OpenTP1 for UNIX:
- The names of user service definition files for sample programs that are located in %DCDIR%\examples\base\conf are bsespp_b (SPP) and bsesup_b (SUP). Specify these file names in the argument of the dcsvstart command when you start the sample programs.
- OpenTP1 for Windows does not support the commands chconf (definition file change command) and bkconf (command for undoing the change made by chconf) that are provided in OpenTP1 for UNIX.
- When you create a UAP, execute the following command:
- If you use COBOL2002, enter nmake.
- If you use Net Express, enter nmake -f make_mf. The link command of Net Express might issue a warning LNK4044 message, but this has no effect on the operation.
- In the COBOL sample programs, COMP-5, not COMP, is used as the numeric data format of arguments. If you use COMP-5 in COBOL2002, you must specify the -Comp5 option during compilation. If you use Net Express and use a numeric data format other than COMP-5, the resulting program will not function correctly.
All Rights Reserved. Copyright (C) 2012, Hitachi, Ltd.