Previous Topic Next topic Print topic


ILMAIN

Specifies the entry method for the executable program being compiled.
Restriction: This directive is supported for .NET COBOL only.

Syntax:

>>-----.---ILMAIN--"entry-program"--.---><
       +-NOILMAIN------------------+

Parameters:

entry-program
The name of the program containing the main entry point, which is the first static method within that program. For procedural COBOL, the main entry point is denoted by the Procedure Division Using clause.

Properties:

Default: NOILMAIN
IDE equivalent: Click Project > Properties > Application and fill in Startup object

Comments:

This directive is comparable to the ILGEN directive: NOILMAIN is equivalent to ILGEN"SUB".

Previous Topic Next topic Print topic