COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-256
STOP
STOP
STOP halts the execution of a run unit, either permanently or only to display a
message.
RUN
halts the execution of a run unit and transfers control to the operating system,
closing any open files.
message
is a nonnumeric literal string. Execution stops temporarily and message is sent to
the home terminal. When any response or carriage return is entered, execution
resumes.
The routine COBOL85^COMPLETION or COBOL_COMPLETION_ provides the
application program a means of reporting a completion code to the operating
environment and terminating execution.
This statement suspends processing until the home terminal sends a carriage return:
STOP "Press Return to show you are out there.".
This sequence of statements is equivalent:
DISPLAY "Press Return to show you are out there.".
ACCEPT USER-REPLY.
Note. The 1985 COBOL standard classifies the latter use as obsolete, so you are advised not
to use it.
Note. The 1985 COBOL standard classifies message as obsolete, so you are advised
not to use it. Instead, use a DISPLAY statement followed by an ACCEPT statement.
STOP
«message»
RUN
VST225.vsd