Previous Topic: &$MHOPT=COMMAND

Next Topic: List Service Procedure Interface


&$MHOPT=TIMEOUT Statement

This statement indicates that the menu has timed out. When the value of &$MHOPT is TIMEOUT, you can use the menu service procedure to perform any special processing that is required when the menu times out.

Read-Only Variables

This statement contains the following read-only variables:

&$MHOPT

This variable is set to TIMEOUT.

&$MHAPPLID

This variable is set to the ID of the application to which the menu belongs.

&$MHMENUNUM

This variable is set to the menu number.

Modifiable Variables

This statement contains the following modifiable variables:

&SYSMSG

Use this variable to return a message. If an error occurs during special processing, this variable must be set to an error message.

Return Codes

The variable &RETCODE must be set by the menu service procedure to one of the following return codes:

0

Redisplay the menu

1

Terminate the menu, and return to the previous primary menu

4

Terminate the menu