The PROGRAM control statement allows you to define the name and properties of a program unit.
If a ROOT table source is to be generated in the KDCDEF run (OPTION statement with GEN=ROOTSRC or GEN=ALL), then you must issue at least one PROGRAM statement.
Generating UTM program units on BS2000 systems
|
|
objectname | Access point for a program unit (CSECT or ENTRY name). objectname may be up to 32 characters in length. For details on the characters allowed refer to the section "Format of names". |
COMP= | Designates the runtime system that the program unit will be used for. This is a mandatory operand. You must specify COMP=ILCS for all program units that support ILCS (Inter Language Communication Services), e.g. program units under COBOL85, FORTRAN90, C, etc. The value that you must specify for COMP can be found in the appendix of the openUTM manual “Using UTM Applications on BS2000 Systems”. COMP=C is a synonym for COMP=ILCS. |
LOAD-MODULE= | lmodname LOAD-MODULE identifies the name of the load module in which the program unit was linked. This load module must be defined using the LOAD-MODULE statement. lmodname can be up to 32 characters in length.This name is subject to the same rules as the element names of a program library (see also section "Format of names"). Please note the following when using the LOAD-MODULE operand:
|
Generating UTM program units on Unix, Linux or Windows systems
|
|
objectname | Name of the access point of the program unit. The name must be alphanumeric and may be up to 32 characters in length. For details on the characters allowed refer to the section "Format of names". |
COMP= | Designates the compiler used to compile the program unit. |
C | C compiler Default: C |
CPP | C++ compiler |
COB2 | COBOL compiler (Server Express / NetExpress / Visual COBOL) |
MFCOBOL | COBOL compiler (Server Express / NetExpress / Visual COBOL), has the same effect as COB2. I.e. a COBOL program that was compiled using a Micro Focus Cobol compiler is generated. |
NETCOBOL | NetCOBOL compiler from Fujitsu. This parameter value is supported only on Unix and Linux systems. A COBOL program that was compiled using the Fujitsu NetCOBOL compiler is generated. CAUTION! In a UTM application, programs must not be simultaneously generated with MFCOBOL/COB2 and NETCOBOL! |
SHARED-OBJECT= | shared_object_name (Program exchange using the dynamic linker) |