2.5.4.3 LOAD Command
The LOAD command makes an object module available for
execution with the RUN command. You can only load object
files created by VAX BASIC.
The LOAD command accepts multiple device, directory, and
file specifications. The LOAD command deletes all previously
loaded object files; therefore, to load several files at the same
time, you must separate the file specifications with a plus
sign (+). Multiple file specifications separated with commas
cause each file to be loaded separately, thereby deleting the
previously loaded file.
If you do not specify any file specification, the LOAD com-
mand erases any previously loaded object files.
LOAD OLD1 + OLD2 + OLD3
Ready
RUN
The previous example loads the files OLD1.OBJ, OLD2.OBJ,
and OLD3.OBJ for execution. These object files are not linked
with the current program or executed until you issue the
RUN command. Therefore, run-time errors in the loaded
modules are not detected until you execute the program.
Each device and directory specification applies to all following
file specifications until you specify a new directory or device.
For example:
LOAD DUA1:[SMITH]PROG3+[JONES]PROG4+DUA2:PROG5
This command loads three object files: