You can specify that CICS® is connected automatically to either the same or a different DBCTL.
If you want to connect automatically to the DBCTL that was being used when CICS was last shut down, use the DBCTLCON system initialization parameter, or add an entry for DFHDBCON to the PLTPI so that it is invoked in the second stage of PLTPI processing (that is, the third stage of CICS initialization), as described in CICS Resource Definition Guide.
If you want to connect automatically to a specific DBCTL, or to connect CICS to DBCTL when it was not connected at shutdown, use the CICS INITPARM system initialization parameter, in addition to specifying DFHDBCON in the PLTPI. INITPARM enables DFHDBCON to have access to the DRA startup parameter table suffix you want to use. Specify:
INITPARM=(DFHDBCON='xx[,yyyy]')
where xx is a 1-to 2-character DRA startup table suffix, which you must enter, and yyyy is an optional 1-to 4-character DBCTL identifier. The DBCTL identifier specified in INITPARM overrides the DRA startup parameter DBCTLID.
Using INITPARM avoids the need to use the CRLP or DASD sequential terminal as your means of automating connection to a specific DBCTL. If you prefer to use a CRLP or DASD sequential terminal, code the following:
//DDIN DD *
CDBC CONNECT SUFFIX(xx) DBCTLID(yyyy)\
where xx is the 1- to 2-character DRA startup table suffix and yyyy is the 1- to 4-character DBCTL identifier, both of which are optional. Specifying a DBCTL identifier here overrides the one specified in the DRA startup table parameter DBCTLID. \ is the end-of-line character. (See the CICS Resource Definition Guide and the CICS Application Programming Guide for guidance on using sequential terminal support.)
What happens at startup depends on the type of CICS start being used (or whether you are using DBCTL with CICS XRF) whether you specified INITPARM, and on whether DBCTL was connected to CICS when CICS was last shut down.
If CICS startup is WARM or EMERGENCY:
If CICS startup is COLD or INITIAL:
If you are using DBCTL in a CICS XRF environment:
See Recovery and restart operations for DBCTL for information on using DBCTL with CICS XRF.