The function file is required to load RMS. It can be defined with a FILE statement (LINK=DEF) in the startup procedure. If no name is assigned, then the default file name SYSDAT.RMS.071 is used. An example of a definition file can be found on "Example of a definition file".
The following function statements are available:
MODE MEISTER | This statement is used to define the write authorization for the depot. |
LANGUAGE | Selects the language for the texts - only effective if no language character (D/E) is specified in the MODE parameter. |
MENU | The contents and number of menu screens can be adapted to user requirements. |
MOD | Defines the overall functionality of RMS. In addition, the load mode of the function modules and their titles for the menu screens can be defined. |
ENDMENU | End statement for the MENU statement. |
comment | For documentation purposes. |
Description of the statements
MODE MEISTER
This statement permits all functions defined with MOD to be executed and must always be the first statement in the function file. If missing, the depot can only be accessed in read-only mode, regardless of the defined functionality.
LANGUAGE=DEUTSCH or ENGLISH
The texts can be output in German or English.
This statement is only evaluated if no language is defined in the MODE parameter in the startup procedure.
MENU,TEXT='menu-title max. 48 characters'
The “menu-title” appears as the title line of the menu screen or as a function title identifying it as a submenu. A submenu is always its own menu screen.
This statement must precede the first MOD statement.
MOD=modulename[,TEMPORARY | RESIDENT],TEXT='function name'
The modulename
is the entry/module name of the function and must be written in uppercase letters.
The function name
appears on the menu screen as the description of this function.
The user can decide when the module is loaded:
TEMPORARY
: The module is not loaded until the function is called up and it is unloaded on exiting.RESIDENT
: The module is loaded when starting RMS and remains resident for the entire RMS session.
If neither of these entries is present, the function module will be loaded at first call-up and will remain resident for the entire session.
The text accompanying the TEXT statement may be up to 48 characters long and appears on the menu screen as the heading for this function.
For a list of the module names, see appendix A.
ENDMENU
End criterion for a menu (menu screen). If another MENU statement precedes the ENDMENU statement, all the MOD statements (functions) in between are displayed in a submenu.
comment
If the first character of a sentence is an asterisk (*), the sentence will be recognized as a comment and skipped. The comment must not exceed 99 characters.