prog
The dynamic loader loads the subprogram when it is called. If the subprogram cannot be found and loaded, then if an ON EXCEPTION clause for the CALL exists it is executed, otherwise the run-time system gives an error.
Builds an executable RTS that contains two programs such that the program to be run is selected at run time. The cob option -e "" specifies that the entry point, or the main program is given at run time and the -o option specifies the name of the system executable file as runprog.
To run the first program, enter the command:
runprog prog1
To run the second program, enter the command:
runprog prog2