Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

Notes on integrating MAREN as a subroutine

&pagelevel(4)&pagelevel

In order to use the user program MAREN 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 MARENU, and is assigned the entry MARENPS when MAREN is used as a program interface or MARENDU 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.