

Data Manipulation Language Statements › #LINK—establishes linkage with a program › #LINK Status Codes
#LINK Status Codes
By default, the #LINK request is unconditional. Error conditions
that can occur are described below:
- A no-space-in-program-pool condition, caused when the amount of storage in the program pool is inadequate to accommodate the program, will result in a delay until sufficient storage space becomes available (unless such a wait would cause a deadlock, in which case an abort would occur).
- A nonconcurrent-program-in-use condition, caused when a copy of the program is already in use and is marked as nonconcurrent (indicating that this program can be used by a maximum of one task), will result in a delay until the program becomes available.
- A storage-conflict condition, caused when a copy of the program previously loaded is temporarily overlayed while in use by a waiting task, will result in a delay until the program is replaced in the program pool.
- Any abnormal condition will result in an abend. Conditions in this category include the following:
- I/O error
- Program not found in program definition table (PDT)
- A wait on storage (default action resulting from the no-storage-in-program-pool condition) would result in a deadlock
The issuing program can request return of control with the COND parameter to avoid a delay or an abend.
After completion of the #LINK function, the value in register 15 indicates the outcome of the operation:
|
Register 15 Value
|
Meaning
|
|
X'00'
|
The request has been serviced successfully.
|
|
X'04'
|
The request cannot be serviced because an I/O, program-not-found, or potential-deadlock error has occurred, or the program has not been defined in the program definition element (PDE).
|
Copyright © 2014 CA.
All rights reserved.
 
|
|