COBOL Manual for TNS and TNS/R Programs

HP COBOL Manual for TNS and TNS/R Programs522555-006
9-1
9 Procedure Division Verbs
This section describes the COBOL verbs that you can use in the Procedure Division, in
alphabetic order. The descriptions of some verbs, such as ADD and INSPECT, show
more than one syntax format.
For descriptions of the COPY and REPLACE verbs, which you can use in any
divisions, see COPY Statement and REPLACE Statement.
ACCEPT
ACCEPT With Mnemonic-Name
ACCEPT with a mnemonic-name delivers small amounts of data to a process from a
terminal or another process.
accept-name
is the identifier of an elementary item or data structure (not an index-name, index
data item, special register, or national data item) in which the process can store
accepted data.
mnemonic-name
identifies a terminal or another process from which the process can accept data.
You must associate mnemonic-name with a terminal or file name in the
Environment Division (see SPECIAL-NAMES Paragraph).
Form Description
ACCEPT With Mnemonic-Name
Delivers small amounts of data to a
process from a terminal or another
process
ACCEPT With DATE, DAY, DAY-OF-WEEK, or
TIME Phrase
Retrieves the numeric representation of
the date, day, day of the week, or time
from the operating system
Note. If mnemonic-name is associated with CONSOLE in the SPECIAL-NAMES
paragraph, you cannot use it in an ACCEPT statement. CONSOLE maps to $0, an output-
only device.
FROM
ACCEPT
accept-name
mnemonic-name
VST126.vsd