The entry point MARENDU is used for the interactive subroutine. This mode enables you to work with MAREN in interactive mode after a call from a user program in the same way as if you issued a START-MAREN command.
MARENDU is called using the @PASS EXTNAME=MARENDU
statement.
With the exception of the BATCH-PROCESSING=YES operand of the PRINT-VOLUME-ATTRIBUTES statement, the full range of functions of the MAREN user program is available. The user program remains loaded. Control is returned to the calling user program when the MAREN statement END or RETURN-TO-PROGRAM is issued or after abnormal termination of the MAREN user program.
No data transfer takes place between the calling user program and the MAREN interactive subroutine. Only indirect data transfer is possible, e.g. using the following MARENADM statement you can create an output file which then serves as an input file in the user program://SHOW-VOLUME-ATTRIBUTES OUTPUT= &filename,...
When calling the subroutine, the usual register conventions must be observed:
Register 13: | This register contains the address of a save area which consists of 18 words and which must be made available by the calling user program. This area is used by MARENU to save the registers of the calling program. |
Register 14: | This register contains the address of the re-entry point to the calling program. |
Register 15: | This register contains the entry point address of MARENDU. |
Return information is not required unless MAREN is terminated abnormally, as all results are displayed directly in the dialog.