SYS_MGR.GET_NAMEPARM
Used in conjunction with the MNTCON EX or MNTCON RUN –v syntax, the SYS_MGR.GET_NAMEPARM function returns the value of a keyword parameter passed at the time the Maintain procedure was invoked. If the function is not successful, FOCERROR is set to -1. See also the MNTCON EX and MNTCON RUN commands using the –v option to pass parameters.
Use the SYS_MGR.GET_NAMEPARM Command
The syntax for the SYS_MGR.GET_NAMEPARM command is
MyParm/format = SYS_MGR.GET_NAMEPARM('ParmName')
where:
Is the name of the variable or format that you are assigning to the output of the function.
Is the actual keyword parameter name used when passing the value.
Retrieving the Value for a Keyword Parameter Passed to a Maintain Procedure
MNTCON EX START2 -v ADDR='Cape Canaveral', COUNTRY=USA
Target Maintain procedure START2 could include:
Address/a0=sys_mgr.Get_NameParm('ADDR');
Here it returns Cape Canaveral to the variable Address.