Previous Topic: Advanced Debugging TechniquesNext Topic: The CICS Life of Task Control Block (CLOT)


DSNC Abends

A DSNC abend means the CICS attach facility detected an internal error and has abnormally terminated a DB2 internal task or a user connected task. The CICS attach facility first writes a SNAP dump to the SYS1.DUMPnn data set. Then, depending on the type of error, the CICS attach facility either:

In the first case described previously, you cannot handle the DSNC abend in your program's EXEC HANDLE ABEND routine because control does not come back to it. EDF captures the DSNC abend, but its halt screen provides little useful information.

CA InterTest for CICS intercepts a DSNC transaction abend and produces an automatic breakpoint, as follows.

     CA INTERTEST for CICS V9.1 - PROTDEM FILE SOURCE LISTING BREAKPOINT   Command ===>     Program= COBSQL   Option #       Stmt #                             Margin= 01                                          Search=           01414*****ENDEXEC.      01415     PERFORM SQLINITIAL UNTIL SQLINITDONE    A   ==>     CALL 'DSNHLI' USING SQLPLIST6.        ==>        ==> CICS abend intercepted. Abend code = DSNC, after an external CALL.        ==>        ==>      Press PF1 for a detailed description.        ==>      01417      01418   _  01419     IF SQLCODE = 530   _  01420        MOVE 'INVALID WORK DEPARTMENT ' TO ERRMSGO   _  01421        MOVE 1                          TO WDEPTL  _  01422        MOVE DFHBMBRY                   TO WDEPTA  _  01423        GO TO SENDRTN.      01424                         

If CICS terminated the transaction, you cannot continue processing it because the registers were destroyed.

CA InterTest for CICS provides several CORE commands to help you determine the cause of the problem online without waiting for the DB2 SNAP dump.