Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

LANSA also defines a standard function key called the MENU key (usually function key 12). It is often referred to in SAA/CUA partitions as the CANCEL key.

By default, use of the MENU/CANCEL function key causes the executing RDML function to end and the last menu that was displayed to be re-displayed.

...

As a general rule, in "mainline" programs (that is, those directly accessible from menus) use the following values for the EXIT_KEY and MENU_KEY parameters:

EXIT_KEY (*YES *EXIT *HIGH)

...

or

    or      EXIT_KEY (*YES)
MENU_KEY (*YES *MENU)

...

or

          or      MENU_KEY (*YES)

 
Similarly, in "subroutine" programs (ie: those that perform services for calling programs / routines) the following values for the EXIT_KEY and MENU_KEY parameters are recommended:

EXIT_KEY (*NO)

...

or

      or      EXIT_KEY (*YES *RETURN *LOW)
                            MENU_KEY (*YES *RETURN)

 
While there is no real need to exactly follow these requirements, what is important is that an application standard for EXIT and MENU function keys is established before one single RDML program is written and is understood and adhered to by all programs and programmers.