Task owned and job step owned storage

Table 1 shows how the system determines the input TCB for task or jobstep owned storage. For task owned storage, the owning TCB is the input TCB. For job step owned storage, the owning TCB is the job step task TCB of the input TCB shown in Table 1.

Table 1. How the system determines the input TCB for task owned storage
Macro Conditions Input TCB Event causing storage to be freed
GETMAIN and FREEMAIN If the caller specifies SVC entry TCB of the currently active task, whose address is in PSATOLD Currently active task terminates
If the caller specifies local branch entry and specifies GPR 4 with a value of zero TCB owning the cross-memory resources in the target address space, whose address is in ASCBXTCB Task, whose TCB address is in ASCBXTCB, terminates
If the caller specifies local branch entry and specifies GPR 4 with a nonzero value TCB address specified by the caller in GPR 4 Task, whose TCB address is passed in GPR 4, terminates
STORAGE If the caller is in task mode and the target address space is the home address space TCB of the currently active task, whose address is in PSATOLD Currently active task terminates
If the caller is in SRB mode or the target address space is not the home address space TCB owning the cross-memory resources in the target address space, whose address is in ASCBXTCB Task, whose TCB address is in ASCBXTCB, terminates
If the caller specifies the TCBADDR parameter TCB specified by the caller with the TCBADDR parameter Task whose TCB address is specified with the TCBADRR parameter terminates
CPOOL If the caller omits the TCB parameter TCB of the currently active task, whose address is in PSATOLD Currently active task terminates
If the caller specifies the TCB parameter with a value of 0 TCB owning the cross-memory resources in the target address space, whose address is in ASCBXTCB Task, whose TCB address is in ASCBXTCB, terminates
If the caller specifies the TCB parameter with a nonzero value TCB specified by the caller with the TCB parameter Task, whose TCB address is specified with the TCB parameter, terminates