|
Time for me to learn again. Why would a constraint be preferable to a trigger? Or would you use both, with the constraint triggering other events on other related files? --------------------------------------------------------- Booth Martin http://www.MartinVT.com Booth@xxxxxxxxxxxx --------------------------------------------------------- -------Original Message------- From: Midrange Systems Technical Discussion Date: Tuesday, April 29, 2003 09:45:15 To: 'midrange-l@xxxxxxxxxxxx' Subject: Using PF constraints Hello all, I am canvassing for opinions on using ADDPFCST to effect data purges instead of writing (comparatively) more complex RPG programs to perform this function. The way I see it, if we add the appropriate constraint to a detail file which has an associated header file with a primary key and specify 'cascading delete', deleting records from the header file will automatically zap the associated detail records right? Is there a good reason why I've never seen this being used? Or is it just the shops that I've worked with that do not think this is a useful feature? Thanks in advance for your opinions. Martin ***************************************************************************** ************** " This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message ". ***************************************************************************** ************** _______________________________________________ This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo.cgi/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l. .
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.