This document provides information about how the OPTION(*IMMED) is different than OPTION(*CNTRLD) on the ENDSBS and PWRDWNSYS commands.
Resolving The Problem
There is not much difference between a controlled end turning immediate and an immediate end. The controlled end allows the application an opportunity to do some end-of-job clean up. The ENDSTS on the RTVJOBA command can be interrogated, and the program can end at a known point. Some server jobs that the system supplies honor a controlled end, and some remain active until they are ended immediate.
The way you can usually tell that a job is doing controlled end processing is that it will end on its own during the delay time. If the job hangs around until the delay time expires and the controlled end turns immediate, it is most likely not coded for a controlled end.
The SIGTERM processing is one of the few differences. A job that has had an opportunity to do SIGTERM processing during a controlled end will not do SIGTERM processing again when the controlled end turns immediate. If the same job is ended immediate rather than controlled, it will be allowed to do SIGTERM processing.
A controlled end with a reasonably short delay is usually recommended over doing an immediate end for the benefit of applications that take advantage of controlled end.
Was this topic helpful?
18 December 2019