Skip to content

INPUT

FUNCTION

This command prompts for and accepts operator input of data.

SYNTAX

INPUT [data-options . . . ]
data-options:
data-name|
system-variable-name|
constant|
elastic-variable|
terminal-mnemonics
data-name
a data name.
system-variable-name
the name of a system variable.
constant
a constant.
elastic-variable
a 3GL variable.
terminal-mnemonics
mnemonics.

NOTES

  • Data names can be used in place of variables. For example, INPUT @(1,3) “Enter Customer Code”, CUS-CODE prompts the operator to enter the customer code into the data name CUS-CODE.
  • The value of the key used to terminate the INPUT command is returned in the Thoroughbred Basic CTL system variable.

EXAMPLES

INPUT @(0,0), 'CL', 'RB', "PRINT REPORT ", REPORT-NAME, "?(Y/N)", R1$,

SEE ALSO

PRINT, INPUT directive and CTL system variable in the Thoroughbred Basic Language Reference

From the Script-IV Language Reference, version 8.9.1. Open this page in the PDF