From CMS for Windows, click File | Utilities | CMS Table Repair.
On the Table Repair Utility Screen, click Browse in the upper right corner. Find the table CONTRIB.DB and click Open.
Jot down the Number of Records, located about half way down the left side of the screen. You'll need that number in a few seconds.
Click the Verify Button at the bottom of the screen. It will come back with either "Table and Header Verify Okay" or "Table Requires a Rebuild". Jot down this message and click OK.
Click the Rebuild Button at the bottom of the screen. When complete, it will come back with a Number of Records Successfully Recovered. That number should match the number you jotted down previously. Click OK | OK.
Repeat these steps with the following tables:
- PRIV: AVAILBAT.DB
- PRIV: SELBATCH.DB
- PRIV: TOTALBAT.DB
Now with the last tables, at the bottom of the Browse button, you'll see Alias : WORK. Click the little down arrow next to WORK and choose PRIV.
Now find the table AVAILBAT.DB and continue with the steps to rebuild it. Repeat with the remaining two.
Once all of these tables are rebuilt, try your process or report that was giving you an error again. It should now be working for you!