dcavey/CrossReferencing — Issue #1: XRef defect #1: Excess Updates
Author: TomDeweerdt
Created: 2012-01-20 11:45:25+00:00
State: open

Consider the `ABCLM` application (see ifsprd.mdl) as input. Below you can see the extract of the code, where the problem is situated.
What happens inside the XRef progam is that we see `AASPS` and identify it as a table. After that, we look for an action. We see that the corresponding action is `FLAG` (update). So we register:
1. `ABCLM` updates `AASPS`
2. `ABCLM` updates `ABCLO`

What the line of code below actually does is it updates the `DCHG` field in the `ABCLO` table **with** the value `DWDYCUR` from the `AASPS` table.
This means, what we need to register is:
1. `ABCLM` reads `AASPS`
2. `ABCLM` updates `ABCLO`

```41ABCLM 00 FLAG; AASPS.DWDYCUR ABCLO.DCHG N```