Previous Topic: Override the Input Attribute

Next Topic: Analyze Panel Input

Control How Long a Panel is Displayed

Panels do not always have to accept operator input, although this is the most common mode of operation. NCL interfaces to other system components allow you to set up monitoring functions with display-only panels requiring little or no operator entry.

Alternatively, you might want an NCL procedure to resume control if no input is received within a certain time.

By default, whenever a synchronous panel is displayed, Panel Services waits indefinitely for entry from an operator. However, the INWAIT operand of the #OPT control statement lets you override this.

INWAIT lets you specify a time (in seconds or parts of seconds) for Panel Services to wait before control is returned to the invoking NCL procedure. During this interval, standard keyboard entry is accepted and processed normally. Once the time interval expires, control returns to the invoking NCL procedure.

This facility has many applications. For example:

For more information about the format of the INWAIT operand, see the #OPT statement description in the reference section.

Note: The INWAIT function does not apply to asynchronous panel operations.