Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Integrating MARENADM as a subroutine

&pagelevel(4)&pagelevel

If MARENADM is to be used as a subroutine, a linkage module which loads a module from the SYSLNK file has to be included in the main program.

This MAREN linkage module is stored in the SYSLIB.MAREN.<ver> file as an object module (OM) with the name MAREN1U , and is assigned the entry MAREN1PS when MARENADM is used as a program interface or MAREN1DU when it is used as an interactive subroutine.

The linkage module performs the following activities:

  • It determines the MAREN version to be loaded dynamically. If the user did not specify a particular MAREN version with SELECT-PRODUCT-VERSION before calling his/her main program, the most recent version installed in the system is selected.

  • The names of the SYSLNK and SYSREP flies are determined, taking due account of the version.

  • These names are used to complete the BIND parameter list for loading the relevant prelinked MAREN module dynamically.

Error situation

If an error occurs while the file names are being ascertained, the default names of the MAREN version for which the linkage module was supplied are used for dynamic loading.