The ACCEPT statement is used to read the low-volume data from the operator's console, several other hardware device or from the operating system. The common format of the
ACCEPT statement is as shown:
When the FROM option is absent, then the data is read into the identifier from the operator's console. At the time of the execution, a message is showed on the console (example, AWAITING COBOL INPUT) and then the program is suspended until the operator enters the data through the console keyboard. The Data entered by the operator will be left justified in the identifier.