3.3 Running a BASIC Program
After you link your program, use the DCL command RUN
to execute it. The RUN command has the following format:
RUN [/[NO]DEBUG] file-spec [/[NO]DEBUG]
/[NO]DEBUG
The /[NO]DEBUG qualifier is optional. Specify the /DEBUG
qualifier to request the debugger if the image is not linked
with it. You cannot use /DEBUG on images linked with
the /NOTRACEBACK qualifier. If the image is linked with
the /DEBUG qualifier, and you do not want the debugger
to prompt, use the /NODEBUG qualifier. The default ac-
tion depends on whether the file is linked with the /DEBUG
qualifier.
file-spec
The name of the file you want to execute.
The following example executes the image SAMPLE.EXE
without invoking the debugger:
$ RUN SAMPLE/NODEBUG
See Chapter 4 for more information about debugging pro-
grams.
During program execution, an image can generate a fatal
error called an exception condition . When an exception
condition occurs, BASIC displays an error message. Run-
time errors can also be issued by other facilities, such as the
OpenVMS operating system. For more information about
run-time errors, see Appendix B.