$RWCALL OPT=MENU

12-1
This function presents a Report Writer menu.
This function has the following format:
&CONTROL NOSHRVARS -EXEC $RWCALL   OPT=MENU               [ MENU={ PRIMARY | REPORT | SCHEDULE } ]

Use

To present a Report Writer menu when a user selects an option from a menu defined by your installation or enters a command written by your installation.

Operands

OPT=MENU
Specifies that a Report Writer menu is to be presented.
MENU={ PRIMARY | REPORT | SCHEDULE }
Specifies which Report Writer menu is to be presented.
PRIMARY
Presents the Report Writer Primary Menu.
REPORT
Presents the Report Definition Menu.
SCHEDULE
Presents the Schedule Definition Menu.

Return Codes

&RETCODE = 0
$RWCALL completed successfully. &$RWFDBK can be set to the following:
1
RETURN command entered or function key pressed
&RETCODE = 4
$RWCALL completed successfully. Request denied. &SYSMSG is set to an error message and &$RWFDBK is set to the following:
1
User not authorized for the request
&RETCODE = 8
An error occurred. &SYSMSG is set to an error message.
Examples
&CONTROL NOSHRVARS -EXEC $RWCALL OPT=MENU &CONTROL NOSHRVARS -EXEC $RWCALL OPT=MENU MENU=PRIMARY &CONTROL NOSHRVARS -EXEC $RWCALL OPT=MENU MENU=REPORT