Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Subsystem Deactivation or suspension

A precondition for this function is that the subsystem is active.

A subsystem can be deactivated in the following ways:

  1. explicitly when the STOP-SUBSYSTEM command is entered (HOLD-SUBSYSTEM suspends the subsystem)

  2. explicitly when privileged macros are called at the program interface ($ESMDEL and $ESMHLD)

  3. implicitly when a START-SUBSYSTEM command is entered with the operand VERSION-PARALLELISM=*EXCHANGE-MODE

  4. automatically at shutdown, for all subsystems whose definitions include such a declaration (STOP-AT-SHUTDOWN=*YES)

Deactivation of a subsystem (STOP-SUBSYSTEM) takes place in the following steps:

  1. The job is checked, in particular the dependencies on other subsystems (synchronous).

  2. The CLOSE-CTRL routine is started, provided one is defined (asynchronous).

  3. The subsystem is closed for new users (asynchronous), preventing the connection of any further tasks to the subsystem (except for those with entry points with CONNECTION-SCOPE=*FREE or SVC/ISL calls for subsystems with entry points with CREATION-TIME=*AT-SUBSYSTEM-CALL).
    From this moment on, it is no longer possible to access code that has an entry point defined with CONNECTION-SCOPE=*OPTIMAL.

  4. The job termination routine (STOPCOM routine), if defined, is started (asynchronous).

  5. Wait until the subsystem is jobless, i.e. the subsystem-specific connection counter is 0 and no task is accessing code that has an entry point defined with CONNECTION-SCOPE=*OPTIMAL (asynchronous). Exception: if the operand FORCED=*YES is specified in the DSSM command, deinitialization is started immediately.

  6. Deinitialization, if defined, is started (asynchronous).

  7. Unloading from the holder task (asynchronous).

A subsystem hold (HOLD-SUBSYSTEM) consists of steps 1 through 6.
If the deactivation or suspension of a subsystem is initiated explicitly via the STOP-SUBSYSTEM or HOLD-SUBSYSTEM command, the synchronous processing mode can be selected instead of the asynchronous mode.