Documentation >
MAC-PAC Reference and Help >
Technical Support >
Key Concepts and Procedures >
Menu Authorization >
Options
Options
Option definitions are maintained on the Option Master File (MA110M1) and the Option Detail File (MA110M2), and are composed of an option number, option description, option type, program/menu name, primary mnemonic code, and secondary mnemonic codes (if desired). The option number is a short code that uniquely identifies the option. The option description is usually a longer phrase used to further identify the option and can be displayed on a menu. You may view option definitions online by selecting Option Inquiry from the Menu Authorization Menu.
Options may be one of three option types: option, group, menu. The first type, option, indicates that a program will be called when the option is selected from a menu. Options with a type of option must have a valid control program name for the program/menu name. The program/menu name is used to indicate which program will be executed (if option type is option) or which menu will be displayed (if option type is menu); otherwise, the field must be blank.
The group option type indicates that the option is only a heading for a collection of related options, and it can not be selected from a menu. A group option on the order processing menu used in the customer service menu example could be called "Customer" and be used as a heading for all options on the menu that are used to maintain and access customer information. The menu option type indicates that another menu will be displayed when the option is selected. Options with a type of menu must have a valid menu name for the program/menu name, and the menu name must be defined on the Menu Master File (MA100M).
The primary mnemonic code is used to define the primary mnemonic that can be entered on a command line to select an option. Because the mnemonic code is linked to the fast path code associated with the option, the mnemonic code can be entered on any command line on any screen. Mnemonic codes are short phrases that are easy to remember and easy to associate with the option. You may also choose to define secondary mnemonic codes for the option that may be used in the same way as the primary mnemonic.
If we want an option for the customer service menu that would allow the user to display the full Order Processing Menu, we could define a new option of type menu. To define the option, select Option Maintenance from the Menu Authorization Menu to display the Option Maintenance Select Screen (MA110S01). When the screen is displayed, you are prompted to enter an option number and a maintenance code. To define a new option, type a number in the option number field and a 1 (add) in the maintenance code field, see the figure below. The option number must not already exist for a current option definition on the Option Master File.
WILLIAMS MENU AUTHORIZATION 1/08/92
DSP01 OPTION MAINTENANCE FUNCTION SELECT
Option Number 3333
Maintenance Code 1
1 - Add
2 - Change
3 - Delete
F3=Exit F4=Prompt F9=Inquiry
|
Maintaining any Option in the Menu Authorization Module.
Once you press Enter and the information you typed is validated, the Option Maintenance Detail Screen (MA110S02) is displayed. On this screen, enter the description used to identify the option, the option type, the program/menu name to be called or displayed (if not option type group), and the primary mnemonic code associated with the option. See the figure below for an example of an option defined to call the Order Processing Menu.
WILLIAMS MENU AUTHORIZATION 1/08/92
DSP01 OPTION MAINTENANCE ADDITION
Option Number 3333
Option Description Order Processing
Option Type 2 1=Option, 2=Menu, 3=Group
Program/Menu Name OPPROCMENU
Primary Mnemonic Code OPMENU
Mnemonic Code Mnemonic Code Mnemonic Code
+
F3=Exit F4=Prompt F9=Inquiry F10=Function Select
F15=Rekey Data
|
Defining an Option to Call the Order Processing Menu.
In the example, the option is defined with a type of menu, because a menu should be displayed when the option is selected, and the name of the menu is shown in the Program/Menu Name field (OPPROCMENU). The primary mnemonic code (OPMENU) was selected because it is short, easy to remember, and easy to associate with the option for displaying the Order Processing Menu.
Once you have entered all the necessary data, press Enter. The information you typed is validated, and if valid, the option information is created on the Option Master and Option Detail files. The customer service menu may also contain headings for the options on the menu. If these are not already defined in the system, you would also create these with the Option Maintenance Conversation with an option type of group. In this example we created group options for Customer, Account Balance, Availability, and Order Processing.
After all of the options needed for a menu are defined, you can create the links between a menu and the options through the Menu/Option Maintenance Conversation. See the section on Menu/Options for more information.