Assign TASKLIB to object module library
Component: | SYSFILE |
Functional area: | Program control |
Domain: | PROGRAM |
Privileges: | STD-PROCESSING |
Function
The SET-TASKLIB command assigns an object module library as a TASKLIB. The Dynamic Binder Loader (DBL) searches for the object module in the allocated object module library on the following calls:
When the LOAD or START-EXECUTABLE-PROGRAM command is called, the Tasklib is used as an alternate library (ALTERNATE-LIBRARY=*TASKLIB operand) when searching for symbols.
When the BIND macro is called with ALTLIB=*TASKLIB, the Tasklib is used as an alternate library when searching for unresolved external references.
When the LOAD or START-PROGRAM command is called with LIBRARY=*STD and RUN-MODE=*STD, the Tasklib is used as the input source for the object modules.
When the Tasklib is searched, the DBL searches in the following libraries in the following order:
The Tasklib assigned with SET-TASKLIB
The TASKLIB file under the caller’s user ID or, if this does not exist, the TASKLIB file in the system default ID (DEFLUID)
Format
SET-TASKLIB | Alias: STTL |
LIBRARY = <filename 1..54 without-gen> |
Operands
LIBRARY = <filename 1..54 without-gen>
Name of the object module library.
After termination of a procedure (END-PROCEDURE, EXIT-PROCEDURE or EOF condition) TASKLIB is given the same assignment it had before the procedure was called (contingent, in S procedures, upon the declaration made in SET-PROCEDURE-OPTIONS).
Return codes
(SC2) | SC1 | Maincode | Meaning |
---|---|---|---|
0 | CMD0001 | Command executed | |
1 | SSM2036 | Operand invalid |