Link edit part

If you are developing COBOL programs that run on z/OS®, the link edit part provides a way to create the information for a link edit file, which in turn specifies how to combine COBOL programs into a load module.

You define a link edit part in either of two cases:

You can also supply your own link edit part if you want to specify linkage editor control statements that are not provided in the default link edit file produced by the COBOL generator.

Link edit file

The link edit file specifies to the z/OS linkage editor how to create a load module from object and load modules. The file is equivalent to the link edit file that you would create if you wrote the COBOL directly.

In the context of EGL, the link edit file is an input to the distributed build function, which prepares the generated source for execution.

EGL always produces a default link edit file (with the suffix led) that is used to linkedit the single program, library, or service into a load module, including any required EGL runtime modules that must be statically linked. The build server always runs a link edit step using the default link edit file.

You can also supply a link edit part, either by specifying the linkEdit build descriptor option or by naming the link edit part with the same name as the corresponding program, library, or service. In this case, EGL generates an additional link edit file (with the suffix lkg). If this additional link edit file is created, the build server runs an additional link edit step using this (lkg) link edit file. This enables you to link edit any additional modules that must be statically linked with the program, library, or service that you are generating. The modules that you combine with the module produced by default link edit do not have to be prepared by EGL or even produced by a COBOL compiler.

For details, see the topic about the linkEdit build descriptor option, which controls the output.


Feedback