DSNC STRT
Use the DSNC STRT command to start the CICS® DB2® attachment facility. The CICS DB2 attachment facility allows CICS application programs to access DB2 databases. Alternatively, issue a CEMT or EXEC CICS SET DB2CONN CONNECTED command to allows your CICS application programs to access DB2 databases.
Environment
This command can be issued only from a CICS terminal.
Syntax
Abbreviation
DSNC STRT or STRT (using the STRT transaction from the CICS DB2 sample group DFH$DB2).
Authorization
Access to this command can be controlled using the CICS transaction attach security check for transaction DSNC, and the CICS command security check for resource DB2CONN. This command requires UPDATE access.
For more information about CICS security, see Security in a CICS DB2 environment.
Parameter description
- ssid
- Specifies a DB2 subsystem ID to override the DB2 subsystem ID (DB2ID) or DB2 data-sharing group ID (DB2GROUPID) specified in the DB2CONN. You cannot specify a DB2 data-sharing group ID in a DSNC STRT command.
Usage notes
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.
- Use the subsystem ID if specified in a DSNC STRT command.
- Use the DB2ID in the installed DB2CONN if not blank.
- Use the DB2GROUPID in the installed DB2CONN for group attach.
- Use the subsystem ID if specified on the INITPARM when the DB2ID and DB2GROUPID in the last installed DB2CONN are blank (or have subsequently been set to blanks). On any startup, INITPARM is always used if the last installed DB2CONN contained a blank DB2ID and a blank DB2GROUPID, even if the DB2ID or DB2GROUPID were subsequently changed using a SET command.
- Use a default subsystem ID of DSN.
Examples
- Example 1
- To start the CICS DB2 attachment facility using the DB2 subsystem ID (DB2ID) or DB2 data-sharing
group ID (DB2GROUPID) from an installed DB2CONN:
DSNC STRT
In this example, group attach is used, so the name of the DB2 subsystem and the name of its group are shown. - Example 2
- To start the CICS DB2 attachment facility, using an installed DB2CONN, but overriding the DB2
subsystem ID (DB2ID) or DB2 data-sharing group ID (DB2GROUPID) in the DB2CONN with the DB2 subsystem
ID DB3A:
DSNC STRT DB3A