Table & Index area report

I have written a program to produce a list of tables and indices along with their area number. This uses the _ianum field of the _file and _index tables.

It all works fine, UNLESS the table has been moved using proutil tablemove or idxmove. Under these circumstances, the original table/index area is reported.

Any ideas?
 
Only 10 months later, and a greater need, but if anyone is interested...

There is an _StorageObject table
_Object-Type is 1 for table, 2 for index
_Object-Number is _File-Number or _idx-num as appropriate
_Area-Number IS the correct area
 
Top