You can create COBOL programs with the Micro Focus compilers or with the Fujitsu NetCOBOL compiler.
Please note the COBOL-specific programming notes in the openUTM manual „Programming Applications with KDCS” (chapter "Additional Information for Cobol", section "Platform-specific features on Unix and Linux systems").
Environment variables for COBOL programs
If you use COBOL programs then you must set compiler-specific environment variables.
Micro Focus COBOL
Perform the following steps if you use COBOL program units with Micro Focus COBOL:
| Call the script |
| Extend the COBCPY environment variable by adding If you create programs based on CPIC, TX or XATMI under openUTM, extend the |
| If you create client programs based on UPIC-L, extend the COBCPY environment |
| Set the COBMODE environment variable to 64, to generate 64-bit objects. |
NetCOBOL
Perform the following steps if you use NetCOBOL program units:
| Call the script |
| Extend the COBCOPY environment variable by adding Set the COB_LIBSUFFIX environment variable to If you create programs based on CPIC, TX or XATMI under openUTM, extend the |
| If you create client programs based on UPIC-L, extend the COBCOPY environment |
Note
If you use COBOL program units, you should note the following:
There are certain compiler-specific characteristics relating to the keywords. You will find details in openUTM manual ”Programming Applications with KDCS” (chapter "Additional Information for COBOL", references to "keywords").
If you want to generate shared objects, please read section "Shared objects (Unix and Linux systems)".