Monitoring activity of connections from IMS
You can monitor the connection to Db2 from IMS by using the /DISPLAY SUBSYS command.
About this task
In addition to showing which program is active on each dependent region connection, the display also shows the LTERM user name and gives the control region connection status.
Procedure
To monitor the connection to Db2 from IMS:
Issue the /DISPLAY SUBSYS command with
the following syntax:
/DISPLAY SUBSYS subsystem-name
The connection between IMS and Db2 is shown as one of the following states:
- CONNECTED
- NOT CONNECTED
- CONNECT IN PROGRESS
- STOPPED
- STOP IN PROGRESS
- INVALID SUBSYSTEM NAME=name
- SUBSYSTEM name NOT DEFINED BUT RECOVERY OUTSTANDING
The thread status from each dependent region is shown as one of the following states:
- CONN
- CONN, ACTIVE (includes LTERM of user)
Example
The following four examples show the output that might be generated when you issue the IMS /DISPLAY SUBSYS command.
The
following figure shows the output that is returned for a DSN subsystem
that is not connected. The IMS attachment
facility issues message DSNM003I in this example.
The following figure shows the output that is returned
for a DSN subsystem that is connected. The IMS attachment
facility issues message DSNM001I in this example.
The following figure shows the output that is returned
for a DSN subsystem that is in a stopped status. The IMS attachment
facility issues message DSNM002I in this example.
The following figure shows the output that is returned
for a DSN subsystem that is connected and region 1. You can use the
values from the REGID and the PROGRAM fields to correlate the output
of the command to the LTERM that is involved.