Update DB2 file
Posted: Fri Dec 01, 2006 8:23 am
When updating a DB2 file, is there a way to accumulate a count for a field in place of updating the count.
i.e. Key 1 Count = 2
Update
Key 1 Count = 5
Updated record
Key 1 Count = 7
Is there a quick way to do this without reading the DB2 file, doing a lookup, if it exist, calculate the new value and update the record or can I do it all in one step. Thanks
i.e. Key 1 Count = 2
Update
Key 1 Count = 5
Updated record
Key 1 Count = 7
Is there a quick way to do this without reading the DB2 file, doing a lookup, if it exist, calculate the new value and update the record or can I do it all in one step. Thanks