Link to another program expecting return

If the program receiving control is not already in main storage, it is loaded. When a RETURN command is processed in the linked program, control is returned to the program initiating the link at the next sequential process instruction.

The linked program operates independently of the program that issues the LINK command regarding handling exception conditions, attention identifiers, and abends. For example, the effects of HANDLE commands in the linking program are not inherited by the linked-to program, but the original HANDLE commands are restored on return to the linking program. You can use the HANDLE ABEND command to deal with abnormal terminations in other link levels. Figure 1 shows the concept of logical levels.
Figure 1. Application program logical levels
Diagram showing CICS at level 0, initiating PROGA at level 1, which LINKs to PROGB at level 2. PROGB uses XCTL to transfer control to PROGC also at level 2, which LINKs to PROGD at level 3. PROGD then XCTLs to PROGE also at level 3. PROGE RETURNs to PROGC, and PROGC RETURNs to PROGA.


dfhp3c00255.html | Timestamp icon Last updated: Monday, 5 June 2017