The ACCEPT statement makes low-volume data available to the program. The HP extensions to the ACCEPT statement (formats 3, 4 and 5) are COBOL language additions that facilitate video forms design and data handling. Format 1 - ACCEPT dest-item [FROM input-source] [ AT END stment ] [ NOT AT END stment ] [ END-ACCEPT ]
1 – dest-item
is the identifier of a data item into which data is accepted.
2 – input-source
is a mnemonic-name defined in the SPECIAL-NAMES paragraph of the Environment Division.
3 – stment
is an imperative statement executed for an AT END or NOT AT END condition.