Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
PAUSE
◄Up► ◄Contents► ◄Index► ◄Back►
─────PAUSE ─────────────────────────────────────────────────────────────────
Action
Temporarily suspends program execution and allows you to execute
operating system commands.
Syntax
PAUSE [ prompt]
Parameter Description
prompt A character constant or an integer from 0 to 99,999
Remarks
If <prompt> is not specified, the following default prompt
appears:
'Please enter a blank line (to continue) or a system command.'
If <prompt> is a number, the number appears on the screen
preceded by PAUSE - . If <prompt> is a string, only the string is
displayed.
The following are possible responses:
If user enters Then
A blank line Control returns to program.
A command Command executes and control returns to the
program. (Not valid for Windows.)
The word User can enter multiple system commands. To
"COMMAND" return to the program, user must enter 'EXIT'.
(Not valid for Windows.)
Examples
SUBROUTINE SetDrive ( )
PAUSE 'Please select default drive.'
END
The following output is produced:
Please select default drive.
-♦-