You create your map file with a text editor. For each entry point you need to enter the following three lines:
[ENTRY-POINT] entry-point-name [PROGRAM-NAME] main-program-name [SUBPROGRAM-NAME] subprogram-containing-entry-point
Example
Consider a run unit with a main program A and subprogram C. Within the run unit, A calls entry point B which is in program C. The table entry in the entry name map file is:
[ENTRY-POINT] B [PROGRAM-NAME] A [SUBPROGRAM-NAME] C
You can also specify an optional [ALIASED-ENTRY-POINT] line following the [ENTRY-POINT] line. If specified, this line defines an entry point name onto which the entry point specified by [ENTRY-POINT] is aliased.
For example:
[ENTRY-POINT] XYZ [ALIASED-ENTRY-POINT] ENTA [PROGRAM-NAME] * [SUBPROGRAM-NAME] PGMA
causes XYZ to be aliased on the ENTA entry point in the program PGMA. This means that when XYZ is called by a program, entry point ENTA will be invoked.