Sounds like you are getting to work on a year 2000 project.
Most compilers will provide this kind of cross reference. Which one are
you using?
> I'm looking for an utility that is able to produce a kind of extended
> cross reference of the data division of a COBOL program. It shows for
> each data field by which other data fields it is modified and which data
> fields are modified by it. It should work like this:
> Given a procedure code like
> MOVE FIELD-A TO FIELD-B
> COMPUTE FIELD-C = FIELD-B * FIELD-D
> ADD FIELD-C TO FIELD-A FIELD-B
> the utility should produce a cross-reference-list like
> FIELD-A modified by FIELD-C (ADD)
> FIELD-B modified by FIELD-A (MOVE), FIELD-C (ADD)
> FIELD-C modified by FIELD-B (COMPUTE), FIELD-D (COMPUTE)
> FIELD-D not modified at all
> FIELD-A modifies FIELD-B (MOVE)
> FIELD-B modifies FIELD-C (COMPUTE)
> FIELD-C modifies FIELD-A (ADD), FIELD-B (ADD)
> FIELD-D modifies FIELD-C (COMPUTE)
> and so on, I think you know what I mean. I would be thankful for any
> hints to a suitable prgram.
> Please contact me at mertens.b...@t-online.de.
> Thanks
> Norbert Mertens