Example not Using MAINTMODE

In the following example, a coupling facility is drained:
  1. All of its structures that can be rebuilt are rebuilt on another coupling facility, and duplexing is stopped.
  2. For all structures that have no active connector and cannot be rebuilt deletion is forced.
  3. All systems that are connected with the coupling facility are disconnected.
  4. The coupling facility is inactivated.
When you issue INGCF with the DRAIN option, you can specify the coupling facility to be drained, for example by entering INGCF DRAIN CF01. If you do not specify a coupling facility name, INGCF displays a selection panel with all coupling facilities that are defined in the sysplex.

The status of the coupling facility (NORMAL) and the authorization type of the operator (ALL) are displayed on the right side of the panel header. The main part of the panel consists of a list containing the structures allocated in CF01 and their conditions. The conditions are classified by color and an asterisk. The asterisk signifies that a structure cannot be rebuilt.

Depending on the availability of the MAINT function, either the two actions, MAINTON with F5 and REBUILD with F10, are enabled, or only REBUILD with F10, is enabled. Pressing F10 calls the confirmation panel of the rebuild process.

After F10 has been pressed on the confirmation panel and the rebuild is complete the command dialog can be refreshed with F9.

One structure could not be rebuilt because no alternate coupling facility is specified in its preference list. The REBUILD action is no longer available. Instead, the FORCE action (F5) is available because the structure that could not be rebuilt has a condition that allows forcing the deallocation of the structure. Pressing F5 calls a confirmation panel similar to that for REBUILD. Pressing F10 on the confirmation panel and refreshing the command dialog after the action has been completed results in an empty panel.

No more structures are allocated in the coupling facility and the coupling facility is not in maintenance mode, so that the coupling facility can be released from the connections with the systems of the sysplex. Consequently, INGCF DRAIN enables the DRAIN action (F4). After completion of that action, the status of the coupling facility changes to DRAINED.

Because the coupling facility is no longer connected to any system, it can be inactivated. After pressing F11 and confirming the action the status of the coupling facility changes to INACTIVE.