z/OS MVS Program Management: User's Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Entry points

z/OS MVS Program Management: User's Guide and Reference
SA23-1393-00

Each time the binder reprocesses a program module, the entry point for the output module must be specified in one of the following three ways (in an order of precedence from the highest to the lowest):
  • The ENTRY control statement or EP option specified on a SETOPT control statement.
  • An entry point specified as an EP option in the PARM field of an EXEC statement or in a file processed as a result of the OPTIONS option in the PARM field.
  • Through an assembler- or compiler-produced END statement of an input object module if one is present. If multiple entry point nominations are encountered, the first one is used. The entry point specified on the END statement of one object module can be defined in a different object module if it is specified as an external reference in the first module.
If none of the above is present, the entry point defaults to either CEESTART if DYNAM=DLL and CEESTART exists, or the first byte of the first control section in the program. If the module contains multiple text classes and an entry point is not specified, the results are not predictable.

The entry point assigned must be defined as an external name within the resulting program object or load module.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014