I have an old package that has a bug in it. The package runs on P.SQL 200i SP4. It has an order entry screen that enters records into one table called 'Order Master' whose file name is ORDMST.DAT and whose unique ID are the fields:
Order
Line
Delivery
When data is entered into this table the program also populates another table called 'Requirement Details' with portions of this data such as the Order, Line, Delivery, Part, Quantity, etc. 'Requirement Detail' has a file name REQDET.DAT.
The documented bug is that when you delete an item through the interface from 'Order Master' it does not delete the record from 'Requirement Detail' and this causes a problem because they system continues to plan for the item.
How do I create a trigger on P.SQL that says on a delete from 'Order Master' delete the record from 'Requirement Detail' that has the same Order, Line, and Delivery fields.
Order
Line
Delivery
When data is entered into this table the program also populates another table called 'Requirement Details' with portions of this data such as the Order, Line, Delivery, Part, Quantity, etc. 'Requirement Detail' has a file name REQDET.DAT.
The documented bug is that when you delete an item through the interface from 'Order Master' it does not delete the record from 'Requirement Detail' and this causes a problem because they system continues to plan for the item.
How do I create a trigger on P.SQL that says on a delete from 'Order Master' delete the record from 'Requirement Detail' that has the same Order, Line, and Delivery fields.