Previous Topic: Action=DISPLAY Class=LIST

Next Topic: Action=DISPLAY Class=MESSAGE


Action=DISPLAY Class=MENU

This statement displays a menu.

This statement has the following format:

&CONTROL NOSHRVARS
-EXEC $CACALL   OPT=ACTION
                ACTION=DISPLAY
                CLASS=MENU
                NAME=‘APPL=application id
                       MENU=menu id’
                [PARMS=‘PSKIP=xxx.xxx’]
APPL=application id

A required parameter giving the application identifier.

MENU=menu id

A required parameter giving the menu identifier.

PSKIP=xxx.xxx

Panel skip setting.

Input Variables

This statement has no input variables.

Return Variables

This statement contains the following return variables:

&SYSMSG

System message. Contains the error message (for return code 8).

Feedback Codes

If a return code of 8 is set, then additional information is available as one of the following feedback codes, set in &$CAFDBK:

8

Processing error

9

Return requested

10

Nesting level exceeded

Example

The following statements display menu 030 in the application identified by the ID ZPR:

&CONTROL NOSHRVARS
-EXEC $CACALL   OPT=ACTION +
                ACTION=DISPLAY +
                CLASS=MENU +
                NAME=‘APPL=ZPR +
                      MENU=030