Default actions in INPUT

When an INPUT instruction executes, the runtime system creates a set of default actions.

According the invoked default action, field validation occurs and different INPUT control blocks are executed.

This table lists the default actions created for this dialog:

Table 1. Default actions created for the INPUT dialog
Default action Description
accept

Validates the INPUT dialog (validates fields and leaves the dialog)

Creation can be avoided with ACCEPT attribute.

cancel

Cancels the INPUT dialog (no validation, INT_FLAG is set to TRUE)

Creation can be avoided with CANCEL attribute.

close

By default, cancels the INPUT dialog (no validation, INT_FLAG is set to TRUE)

Default action view is hidden. See Windows closed by the user.

help

Shows the help topic defined by the HELP clause.

Only created when a HELP clause is defined.

The accept and cancel default actions can be avoided with the ACCEPT and CANCEL dialog control attributes:
INPUT BY NAME field1 ATTRIBUTES ( CANCEL=FALSE )
  ...