Define a DB2CONN in the local system.
CREATE DB2CONN >>-CREATE DB2CONN(data-value)--ATTRIBUTES(data-value)-----------> >--ATTRLEN(data-value)--LOGMESSAGE(cvda)----------------------->< CREATE DB2CONN attribute values: .-CONNECTERROR(sqlcode)-. |--+---------------------+--+-----------------------+-----------> '-DESCRIPTION(char58)-' '-CONNECTERROR(abend)---' .-MSGQUEUE1(CDB2)--. >--+-------------------+--+------------------+------------------> +-DB2GROUPID(char4)-+ '-MSGQUEUE1(char4)-' '-DB2ID(char4)------' >--+------------------+--+------------------+-------------------> '-MSGQUEUE2(char4)-' '-MSGQUEUE3(char4)-' .-NONTERMREL(yes)-. .-PURGECYCLE(0,30)------. >--+-----------------+--+-----------------------+---------------> '-NONTERMREL(no)--' '-PURGECYCLE(0-59,0-59)-' .-RESYNCMEMBER(yes)-. >--+-------------------+--+---------------+---------------------> '-RESYNCMEMBER(no)--' '-SIGNID(char8)-' .-STANDBYMODE(reconnect)-. .-STATSQUEUE(CDB2)--. >--+------------------------+--+-------------------+------------> +-STANDBYMODE(noconnect)-+ '-STATSQUEUE(char4)-' '-STANDBYMODE(connect)---' .-TCBLIMIT(12)-----. .-THREADERROR(n906d)-. >--+------------------+--+--------------------+-----------------> '-TCBLIMIT(4-2000)-' +-THREADERROR(abend)-+ '-THREADERROR(n906)--' .-ACCOUNTREC(none)-. >--+------------------+--+---------------+----------------------> +-ACCOUNTREC(uow)--+ '-AUTHID(char8)-' +-ACCOUNTREC(task)-+ '-ACCOUNTREC(txid)-' .-AUTHTYPE(userid)-. .-DROLLBACK(yes)-. >--+------------------+--+----------------+--+-------------+----> +-AUTHTYPE(group)--+ '-DROLLBACK(no)--' '-PLAN(char8)-' +-AUTHTYPE(signid)-+ +-AUTHTYPE(term)---+ +-AUTHTYPE(txid)---+ '-AUTHTYPE(opid)---' .-PLANEXITNAME(DSNCUEXT)-. .-PRIORITY(high)--. >--+------------------------+--+-----------------+--------------> '-PLANEXITNAME(char8)----' +-PRIORITY(equal)-+ '-PRIORITY(low)---' .-THREADLIMIT(3)------. .-THREADWAIT(yes)-. >--+---------------------+--+-----------------+-----------------> '-THREADLIMIT(3-2000)-' '-THREADWAIT(no)--' .-COMAUTHTYPE(userid)-. >--+------------------+--+---------------------+----------------> '-COMAUTHID(char8)-' +-COMAUTHTYPE(group)--+ +-COMAUTHTYPE(signid)-+ +-COMAUTHTYPE(term)---+ +-COMAUTHTYPE(txid)---+ '-COMAUTHTYPE(user)---' .-COMTHREADLIM(1)------. >--+----------------------+-------------------------------------| '-COMTHREADLIM(0-2000)-'
Conditions: ILLOGIC, INVREQ, LENGERR, NOTAUTH
The CREATE DB2CONN command installs a DB2CONN definition with the attribute specified on the command. It does not use a resource definition stored in the CSD. If there is already a DB2CONN in the local CICS region, the new definition replaces the old one; if not, the new definition is added.
A syncpoint is implicit in CREATE DB2CONN processing, except when an exception condition is detected early in processing the command. Uncommitted changes to recoverable resources made up to that point in the task are committed if the CREATE executes successfully, and rolled back if not.