When one Easytrieve batch JOB1 is calling and processing a COBOL subroutine, if another Easytrieve batch JOB2 calls the same COBOL subroutine, is there a possibility that the module of the COBOL subroutine called by JOB1 will be used?
In other words, Subroutines called by JOB1 are placed in memory and executed.
If the same subroutine is called by JOB2, is there a possibility that it will reference the same memory in which it is executed?
Release : ALL
Environment : z/OS
If you specify RENT, the module is supposed to be shared by multiple TASKs, so if it is NORENT, it is not shared.
In the case of RENT in COBOL, the work field is taken for each TASK, so there is no problem if the module is shared.
An executable load module's reusability depends on attributes set by the z/OS Linkage Editor or Binder who create the COBOL(or any other mainframe programming language for that matter) executable program. Easytrieve follows the z/OS inter-program linkage rules.
Note that A COBOL load module can be marked by the Linkage Editor(or binder) as non-reusable, reusable, or re-entrant.