DSNA201E   DSNACA00 TCB=address CANNOT USE 'CONNECT', ALREADY CONNECTED TO DB2

Explanation

A CONNECT request was received but a connection to DB2® already existed for the TCB identified by 'address' in the message. This is a CAF error (application program error). The message is accompanied by return code (R15) 200 and code (R0) 00C10201.

System action

No new connection is made to DB2 and an error return and reason code are issued. The DB2 call attachment facility is ready for more input.

System programmer response

Refer the problem to the programmer using the DB2 call attachment facility.

Programmer response

You must DISCONNECT the previous connection before you can re-CONNECT. Correct the logic in your code.

Problem determination

See a DSNTRACE trace stream to understand the context of this message.