EXIT MENU instruction

EXIT MENU statement terminates the MENU block and continues the program flow with the statement after the menu block.

MENU "Stock"
  ...
  COMMAND "Exit"
     EXIT MENU
END MENU