Informix Error -4393
-4393 The MENU statement has exceeded the maximum number of selections.
There is a maximum of 25 selections in a menu. Make sure that you have not omitted an END MENU statement, thus combining two menus. If the menu is as you intended it, you will have to revise the program so as not to exceed the limit, for example by creating a hierarchy of menus.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4393 fires when a MENU statement has more than 25 selections — per the official guidance,
this is a hard limit; a missing END MENU combining two menus is a common contributing cause.
- A
MENUstatement with more than 25COMMANDselections, per the official guidance — the direct, only cause. - A missing
END MENUcombining two separate menus into one, per the official guidance — a related possible cause.
Solutions / Resolution
- Check for an omitted
END MENUstatement combining two menus, per the official guidance. - If the menu is genuinely intended as-is, revise the program to stay within the limit, per the official guidance — for example, by creating a hierarchy of menus.
Examples
Splitting into a menu hierarchy
Replace one 30-option menu with a top-level menu of a few categories, each leading to its own sub-menu with the remaining options.
Diagnostic Checks
- Count the
COMMANDselections in theMENUstatement, and check for a missingEND MENUif the count is unexpectedly high.
Related Errors / Related Topics
- -4396 — "The MENU declaration at line line-number is not terminated." A related
MENU-structure error, about a missingEND MENUentirely, which can also be the cause of this selection-count overflow.
A MENU statement exceeds 25 selections — check for a missing END MENU, or split it into a
hierarchy of menus.