Load program (load or object module)
Component: | BLSSERV |
Functional area: | Program control |
Domain: | PROGRAM |
Privileges: | STD-PROCESSING |
Function
The LOAD-PROGRAM command has two functions:
It calls up the dynamic binder loader DBL and defines the primary input. The DBL then links LLMs (link and load modules) or OMs (object modules) to create a load unit, which it then loads into memory.
It calls up the static loader ELDE. ELDE then loads a program (load module) linked by the TSOSLNK linkage editor into memory.
When calling with LOAD-PROGRAM, only the checks of the addressing mode compatible with BLSSERV < V2.5 are performed. This corresponds to specifying AMODE-CHECK=*STD in the START- or LOAD-EXECUTABLE-PROGRAM command. Execution of the loaded program or load unit does not begin until it is requested by means of a RESUME-PROGRAM command. If users wish to load and start the load unit or program with just one command, they may issue the START-EXECUTABLE-PROGRAM (or START-PROGRAM) command in place of the LOAD-PROGRAM and RESUME-PROGRAM commands.
In the case of operands which have *DBL-PARAMETERS as their default value, the MODIFY-DBL-DEFAULTS command can be used to modify the default DBL parameters which apply when the task is started. The parameters can be configured separately for calls to the LOAD- and START-... commands on the one hand and for the BIND macro call on the other. The SHOW-DBL-DEFAULTS command lists the values which are currently set. The RESET-DBL-DEFAULTS can be used to return the settings to the original DBL defaults.
Restrictions
Users with SECURITY-ADMINISTRATION, SAT-FILE-EVALUATION or SAT-FILE-MANAGEMENT privilege can use the command in procedures only.
Format
LOAD-PROGRAM | Alias: LDPG | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Return codes
(SC2) | SC1 | Maincode | Meaning |
---|---|---|---|
0 | CMD0001 | Command executed | |
2 | 0 | BLS0150 | Warning on program loading (see message to SYSOUT) |
32 | BLS0152 | Program loading aborted due to system error | |
64 | CMD0216 | User has no authorization for command | |
64 | BLS0153 | Program loading aborted due to unrecoverable error (for cause, see SYSOUT message) |