Previous Topic Next topic Print topic


Example 2

Consider the situation where you want to load a program by using a different name to that given to the source program. For example, your JCL might contain an instruction to load myprogx, whereas the actual name of the program is myprog. On the mainframe, you could achieve this by linking the program and giving it the required name. However, you cannot link COBOL programs in your COBOL development system; you therefore need to use the Entry Point Mapper to make an association between the name used to load the program and the actual program name.

For example, suppose your program is called myprog, but you instead want to use myprogx as the name to load to the program. The table entry required in the mfentmap.dat file is:

 [ENTRY-POINT] myprogx
 [PROGRAM-NAME] *
 [SUBPROGRAM-NAME] myprog

where [ENTRY-POINT] defines the alias name and [SUBPROGRAM-NAME] is the name of the executable program.

Previous Topic Next topic Print topic