Before a statically linked program can execute, it has to be loaded into main memory. In BS2000 this function is performed by a static loader. This, like the dynamic binder loader, is called with the START-PROGRAM or LOAD-PROGRAM command (see the “BS2000/OSD-BC Commands” manual [3]):
The START-PROGRAM command instructs the static loader to load the program into main memory and start it. As the program is run immediately after the command is issued, the necessary resources (files) have to be assigned to the loader first (see section "Assignment of cataloged files").
The LOAD-PROGRAM command instructs the static loader to load the program into main memory without starting it. This makes it possible to enter additional commands prior to program execution, e.g. commands for program monitoring using a debugging aid. The program can subsequently be started by issuing a RESUME-PROGRAM or %RESUME command.
The following overview summarizes the options of the START-PROGRAM and LOAD-PROGRAM commands that are most relevant for calling the static loader; a detailed description is provided in the “BS2000/OSD-BC Commands” manual [3].
{START-PROG | LOAD-PROG} FROM-FILE = {*PHASE(LIB=library,ELEM=element,VERS=version) | filename}
library | specifies the name of a PLAM library in which the program generated by TSOSLNK is stored as a library element. |
element | is the name of the library element in which the program is stored. It must be a type C element. |
version | specifies the element version as a string of 24 characters or less. |
filename | is the name of the cataloged file which contains the program generated by TSOSLNK. |