Determining the main routine
In Language Environment, only one routine can be the main routine. The main routine should be presented to the linkage editor first. Because all potential main routines nominate the entry point through the END record, the correct entry point is chosen. If the main routine is not presented first, the entry point must be specified with a link-edit control card.
An entry point is defined for each supported HLL. Table 1 identifies the desired entry point. The table assumes that your code has been compiled using the Language Environment-conforming compilers.
HLL | Main entry point | Fetched entry point |
---|---|---|
COBOL | Name of the first object program to get control in the object module | Program name |
PL/I | CEESTART | CEESTART or routine name, if OPTIONS(FETCHABLE) is used. |