DFHSKC (subtask control program)
DFHSKM invokes DFHSKC using the DFHKCP attach logic to start a subtask of the operating system, and wait for its completion. DFHSKM passes the address of the subtask control area in the facility control area address (TCAFCAAA) in the TCA.
DFHSKC issues an EXEC CICS GETMAIN for shared storage to pass to the subtask for use as its automatic storage. The length required is in a field in DFHSKE containing the automatic storage requirements. DFHSKC issues the ATTACH macro with the ECB option to attach the operating system subtask, and passes the address of the subtask control area.
DFHSKC issues the CICS SVC to authorize the TCB of the subtask to use the SVC.
DFHSKC issues a KC wait on the attach ECB. The module is suspended until subtask termination, when the ECB is posted. On termination, the subtask puts a return code in the subtask control area.
When the subtask completes, DFHSKC cleans up the subtask work queue. It then frees the automatic storage and terminates.
DFHSKC writes messages to CSMT from this module if it was unable to attach a subtask of the operating system, or the subtask indicated that its termination was not normal.