For delete cascade definition,how to get child delete count

Ask question on - DataBase Concepts, IBM Mainframe DB2, DB2/UDB, DB2 Tools, SQL , DB2 programming with languages like COBOL, PL1.

Moderators: Kalicharan, Moderator Group

Post Reply
surindersingh
Member
Posts: 5
Joined: Thu Aug 08, 2013 1:58 pm

For delete cascade definition,how to get child delete count

Post by surindersingh » Fri Aug 09, 2013 6:23 am

Hi All,

For Parent-child tables having delete cascade definition as per my knowledge, if master is delete, any number of child rows will be deleted and there is no way of capturing delete count. SQLERRD will give delete count for master only.

Do you know if child is deleted using delete cascade definition, any method of capturing and controlling deletes from child?

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others