Multiple Assembler Modules with Calls Using External Names

To link multiple Assembler modules where all the calls reference the external names of the called modules, you need to ensure that the Automatically link module and Resolve external calls at link time (CALL) settings are enabled for the main module (the calling module) and disabled for the called modules.

Note: When linking modules for the first time you may want to set Resolve external calls at link time (CALL) to false to prevent the linker from automatically generating stub modules for them. Then you can see any missing assembler or COBOL reference that are required for this module.

You can find both of these settings in your file properties on the Assembler Compiler > Auto-link Settings page and in Micro Focus > Project Settings > Assembler Compiler > Auto-link Settings in your project properties.

Since all the calls reference the modules' external names, the Assembler Compiler finds and locates all the called modules in your Assembler source libraries, and builds the main and called modules into one .390 file. Once this .390 load module is brought into memory by the COBOL run-time loader, all public entry points in the .390 module are callable by any other COBOL or Assembler module.