Hey, Joe. I was working on that compacting maintenance program we talked about a few threads back. I ran into a problem and wanted to know if you have ever seen anything like it.
The program locates all my tables across the network (300+) and then attempts to compact them. The compact() method is supposed to fail when a table is open. Anyway, on one table the data was all jumbled up. I verified the structure and it was fine. In this particular table, almost every field is val checked with 'picture'. When I examined the val checks they were there, BUT... they had been moved around. In other words the val check for field 4 was moved to field 8, the val check for field 8 was moved to field 12, etc... The really odd thing is that the data was changed to match the jumbled val checks.
.
I've tried it several times with fresh copies of the table in question and the results are always the same. Other tables seem fine. I even used setExclusive() without effect.
Have you had a similar problem with compact()?
basic syntax inside a scan loop:
if not tablevariable.compact()
then (log failure)
else (report file size change)
endif
Any ideas?
Mac
mailto:langley_mckelvy@cd4.co.harris.tx.us
The program locates all my tables across the network (300+) and then attempts to compact them. The compact() method is supposed to fail when a table is open. Anyway, on one table the data was all jumbled up. I verified the structure and it was fine. In this particular table, almost every field is val checked with 'picture'. When I examined the val checks they were there, BUT... they had been moved around. In other words the val check for field 4 was moved to field 8, the val check for field 8 was moved to field 12, etc... The really odd thing is that the data was changed to match the jumbled val checks.
.
I've tried it several times with fresh copies of the table in question and the results are always the same. Other tables seem fine. I even used setExclusive() without effect.
Have you had a similar problem with compact()?
basic syntax inside a scan loop:
if not tablevariable.compact()
then (log failure)
else (report file size change)
endif
Any ideas?
Mac
mailto:langley_mckelvy@cd4.co.harris.tx.us