Use the COBOL 'STOP' statement, for example:
IDENTIFICATION DIVISION.
PROGRAM-ID. SAMPLE.
PROCEDURE DIVISION.
STOP 'GO GET COFFEE'
* program waits until operator responds
DISPLAY 'PROGRAM WILL NOW CONTINUE'
* program now continues
* [...]
GOBACK.
source
share