The DSNC STRT command starts the CICS® DB2® attachment facility, which allows CICS application programs to access DB2 databases. The same function can also be achieved by issuing a CEMT or EXEC CICS SET DB2CONN CONNECTED command.
This command can be issued only from a CICS terminal.
STRT syntax >>-DSNC STRT --+------+--------------------------------------->< '-ssid-'
DSNC STRT or STRT (using the STRT transaction from the CICS DB2 sample group DFH$DB2).
Access to this command can be controlled using the following CICS authorization checks:
If a DB2CONN is not installed when the DSNC STRT command is issued, error message DFHDB2031 is produced, indicating that no DB2CONN is installed. Resource definitions must be installed from the CSD before attempting to start the CICS DB2 attachment facility.
If you issue a DSNC STRT command and specify a DB2 subsystem ID, any DB2GROUPID in the installed DB2CONN definition is blanked out, and needs to be set again (using CEDA INSTALL or a SET DB2CONN command) to use group attach on subsequent occasions.
The hierarchy for determining the DB2 subsystem to use is as follows:
DSNC STRT
In this example, group attach is used, so the name of the DB2 subsystem and the name of its group are shown.
DFHDB2023I 07/09/98 15:06:07 IYK4Z2G1 The CICS DB2 attachment has connected to DB2 subsystem DF2D group DFP2
DSNC STRT DB3A
DFHDB2023I 07/09/97 15:06:07 IYK4Z2G1 The CICS DB2 attachment has connected to DB2 subsystem DB3A
If you are not using group attach, and the DB2 subsystem is not active when an attempt is made to start the CICS DB2 attachment facility, the following output is received if STANDBYMODE=NOCONNECT is specified in the DB2CONN:
DFHDB2018 07/09/98 15:14:10 IYK4Z2G1 DB3A DB2 subsystem is not active.
If STANDBYMODE=CONNECT or RECONNECT, the following output is received:
DFHDB2037 07/09/98 15:15:42 IYK4Z2G1 DB2 subsystem DB3A is not active. The CICS DB2 attachment facility is waiting.
If you are using group attach, and no DB2 subsystems in the data-sharing group are active when an attempt is made to start the CICS DB2 attachment facility, the following output is received if STANDBYMODE=NOCONNECT is specified in the DB2CONN:
DFHDB2037 07/09/01 12:30:10 IYK2ZFV1 DB2 group DFP2 has no active members.
If STANDBYMODE=CONNECT or RECONNECT, the following output is received:
DFHDB2037 07/09/01 12:55:00 IYK2ZFV1 DB2 group DFP2 has no active members. The CICS DB2 attachment facility is waiting.