After the introduction of data sharing in DB2 it has become rather difficult to keep track of which DB2 subsystems that are data sharing group members and which MVS systems they are running on. Fortunately there exist a DB2 command that gives you all this information. It is called -DIS GROUP.
An easy way of executing a -DIS GROUP command is by using the following REXX. The REXX is executed using command TSO %DB2GROUP <SSID> if you choose to call the REXX DB2GROUP:
Here is an example of the produced output from command TSO %DB2GROUP DB1A:
This output is copied directly from a DB2 manual and is a hipothetical example. I have removed a couple of subsystems from the list, though. First important information from the output is GROUP ATTACH NAME. This name is the common name which you can use on all the listed MVS systems (column SYSTEM NAME). A TSO %DB2GROUP DB10 will produce almost the same result as in the listed example. The next important information is column SUBSYS which lists the names of all the DB2 subsystems that are part of the DB2 data sharing group. The last important information is listed in column SYSTEM NAME which contains the name of the MVS system where the DB2 subsystem is executing. I can now conclude that the -DIS GROUP command was issued on MVSA because the DB2 subsystem DB1A is running on this MVS.
If you want to know what the other columns contain and what the lines at the bottom of the output means you can read all about it in the DB2 Manual Command reference.