You are here: Development Standards > Routines > Application-SpecificRoutines > RMMNUMRG.PUB

# RMMNUMRG.PUB

RMMNUMRG.PUB is a public program that will attempt to merge a list of entries from an application’s XXMNU.MRG text file into the XXMN file. A variety of options and parameters can be set in the merge file to accomplish a variety of menu configuration. This process was implements for enhancement appliations that change an applications menu structure, to avoid having a copy of the entire menu file in the enhancement application.

`1050 ENTER FILE[ALL],MENUFILE$,OSGUI$`

Variables | Description
FILE[ALL] | Standard file array used for the data file channel number
MENUFILE$ | Menu merge template
OSGUI$ | Standard GUI template

Exit Points | Explanation
EXIT | RMMNUMRG.PUB normally exits with no error.

MENUFILE$ String Template Definition

The MENUFILE$ string template is used to pass new menu information to RMMNUMRG.PUB. The fields in the string template are defined in the following table.

Field | Description
APPL:C(2*) | Application ID’s menu to merge data into
MENU:C(6*) | Menu ID to merge into
ACTION:C(2*) | Action to perform: "AL" = Append a line to end of menu record "DL" = Delete a line given a program name and parameter "IA" = Insert line after given a program name and parameter "IB" = Insert line before given a program name and parameter "RL" = Replace line given a program name and parameter
TARGETLINE:C(1*) | Not currently used
TARGETPROG:C(1*) | Program name to look for
TARGETPARAM:C(1*) | Menu's parameter to look for
DESC:C(40*) | Description to add to menu record
TYPE:C(1*) | Program type to add to menu record
PROG:C(12*) | Program name to add to menu record
PARAM:C(2*) | Parameter to add to menu record
SDESC:C(20*) | Short description to add to menu record
PATH:C(60*) | Path (if necessary) to add to menu record - Used for documents only