Terminating the Link
The gateway program indicates when the GATEWAY link driver task should terminate. DMTMANEX, the end of task routine, processes any open spool files. DMTGPI does not perform any session clean up. When the link terminates, it returns control to GCS.