DSNC STOP
Use DSNC STOP to stop the CICS® Db2® attachment facility. Alternatively, you can issue a CEMT or EXEC CICS SET DB2CONN NOTCONNECTED command to stop the attachment facility.
Abbreviation
- DSNC STOP
- STOP (using the STOP transaction from the CICS Db2 sample group DFH$DB2®)
Environment
This command can be issued only from a CICS terminal.
Authorization
Access to this command is controlled by CICS transaction security for the DSNC transaction and by CICS command security for the DB2CONN resource. This command requires UPDATE access.
For more information about CICS security, see Security in a CICS Db2 environment.
Syntax
Parameters
- QUIESCE
- Specifies that the CICS Db2 attachment facility is to be stopped after CICS transactions currently running complete. QUIESCE waits for all active transactions to complete, so new UOWs can start and acquire threads.
- FORCE
- Specifies that the CICS Db2 attachment facility is to be stopped immediately by forcing disconnection with Db2, regardless of any transactions that are running. Currently running transactions that have accessed Db2 are forcepurged. This includes transactions that may have committed updates to Db2 in a previous UOW, but have not yet accessed Db2 in their current UOW.
Usage notes
For a DSNC STOP QUIESCE, message DFHDB2012 is output to the terminal. The terminal then remains locked until shutdown is complete, when message DFHDB2025 is output.
For a DSNC STOP FORCE, message DFHDB2022 is output to the terminal. The terminal then remains locked until shutdown is complete, when message DFHDB2025 is output.
Examples
- Example 1
- To quiesce stop the CICS
Db2 attachment facility:
DSNC STOPFigure 1. Sample output from DSNC STOP command DFHDB2012 07/09/98 14:54:28 IYK4Z2G1 Stop quiesce of the CICS-DB2 attachment facility from DB2 subsystem DB3A is proceeding.The message resulting from the DSNC STOP command shown in Figure 1 is replaced by the message shown in Figure 2 when shutdown is complete.Figure 2. Sample output from DSNC STOP when shutdown is complete DFHDB2025I 07/09/98 14:58:53 IYK4Z2G1 The CICS-DB2 attachment has disconnected from DB2 subsystem DB3A - Example 2
- To force stop the CICS
Db2 attachment facility:
DSNC STOP FORCEFigure 3. Sample output from DSNC STOP FORCE command DFHDB2022 07/09/98 15:01:51 IYK4Z2G1 Stop force of the CICS-DB2 attachment facility from DF2D is proceeding.The message resulting from the DSNC STOP FORCE command shown in Figure 3 is replaced by the message shown in Figure 4 when shutdown is complete.Figure 4. Sample output from DSNC STOP FORCE when shutdown is complete DFHDB2025I 07/09/98 15:10:55 IYK4Z2G1 The CICS-DB2 attachment has disconnected from DB2 subsystem DF2D group DFP2In this example, group attach was used, so the name of the Db2 subsystem and the name of its group are shown.
