Find answers to your technical support questions using our knowledgebase.
Using the seach below, enter keywords related to your technical support question. We will search our support database and find support articles related to your inquiry.
Title
Rebuilding key files in MAS 90 and MAS 200
ID
0000000032
Subtitle
For Library Master 3.71 and above
Description
For MAS 90 or MAS 200
Text
Use caution when working with this task. ALWAYS MAKE A BACKUP FIRST.
If you are unfamiliar with doing this, make sure you contact an experienced MAS 90 or MAS 200 consultant for assistance. Performing this task incorrectly can seriously corrupt your MAS 90 or MAS 200 system!
Use Rebuild Key Files to rebuild direct or multi-keyed files. This utility removes all records that contain character values outside of the standard alphanumeric character set and completely rebuilds the data file directory. The directory is rebuilt using the information contained in the individual data records.
Resolution
FOR MAS 90 OR MAS 200 VERSION 4.0 AND LATER: 1. Expand "Modules", "Library Master" and "Utilities". Double-click on 'Rebuild Key Files'.
2. A warning message appears; click 'OK' only if you are familiar with this utility. Click 'Cancel' if you are unfamiliar with this utility, and contact an experienced MAS 90 or MAS 200 consultant for help.
3. At the "Rebuild Application Key Files" window, select the applicable company code and module.
4. Select the 'Rebuild' check box for the files that must be rebuilt. Click the 'Select All' button to rebuild all files.
5. Select the 'Scan Files' check box to return the number of records that will be recovered before rebuilding the files. Scanning the files is not required, BUT IS HIGHLY RECOMMENDED.
6. Choose the 'Optimize File' check box to rewrite the existing file to a new file with the following updates: a. Excess data blocks are removed, b. The primary keys are arranged in alpha-numeric order.
7. The 'Save Original File' check box is automatically selected for you. Using this feature is highly recommended. A backup file with the extension .old is created in the current data location (e.g., ...\Mas90\Mas_abc\Apabc\Ap1abc.old).
8. Click 'Proceed'.
9. If the 'Scan Files' check box was selected, the 'Scanning (Module and file description)' window shows the number of records to be recovered. After the scan, a message prompts you to proceed. a. If most or all of the records will be recovered, click 'Yes'. b. If a large number of records will be lost, click 'No' and seek assistance to determine why so many records are damaged. There may be something else wrong in the system to have caused this condition. Take no chances unless you are sure!
10. On the "Rebuild Key Files Error Log" window, click 'Print' or 'Preview'. The error log provides detailed information about the files that were repaired, including information about records that were removed. IMPORTANT: Printing the error log is not required, but is highly recommended. The log cannot be reprinted and is useful if the lost records must be re-created!
11. When the "Rebuild Application Key Files" window again appears, click 'Cancel' to close the window.
FOR MAS 90 AND MAS 200 VERSIONS 3.71 AND EARLIER: 1. Expand "Library Master" and "Repair". Double-click 'Rebuild Application Key Files'. IMPORTANT: IF "REBUILD KEY FILES REQUIRES SUPERVISOR RIGHTS" APPEARS, THE USER DOES NOT HAVE SUPERVISOR PERMISSIONS. LOG ON TO MAS 90 OR MAS 200 WITH A USER ID THAT HAS SUPERVISOR RIGHTS!
2. A warning message appears; click 'OK' only if you are familiar with this utility. Click 'Cancel' if you are not and contact an experienced MAS 90 or 200 business partner.
3. When the "Rebuild Application Key Files" window appears, select the applicable company code and module. The list of the key files for that company will appear.
4. Click on the files to be rebuilt and then choose the 'Select' button. 'YES' relaces 'No' in the "Rebuild" column. You can also click on the 'All' button if all files are needing rebuilding.
5. After you confirm that all appropriate files are selected, click on 'Proceed'.
6. "Do you want to scan files first" now appears. IMPORTANT: Scanning the files is not required but is highly recommended! Click 'Yes' to scan the records before rebuilding. The number of records that will be recovered out of the number of records scanned displays with an option to continue. a. If most of the records wil lbe recovered, click 'Yes'. b. If a large number of records will be lost, click 'No' and seek the assistance of an experienced MAS 90 or 200 support partner. There could be an underlying reason why there are so many that will not be recovered. Click 'No' to rebuild the files without scanning.
7. "Do you want to save original files?" appears. IMPORTANT: SAVING THE CILES IS NOT REQUIRED, BUT IS HIGHLY RECOMMENDED! a. Click 'Yes'. A copy of the original file will be saved on the data folder with a .old extension, e.g., ...\Mas90\Apabc\Ap1abc.old. b. Click 'No' to proceed without creating a copy of the original file.
8. "Do you want to print the Error Log?" appears when the rebuild completes. The error log provides detailed information about the files that were repaired, including information about records that were removed. IMPORTANT: Printing the error log is not required, but is highly recommended. The log cannot be reprinted and is useful if the lost records must be re-created!
9. When the "Rebuild Application Key Files" window again appears, click 'Cancel' to close the window.
FOR MAS 200 - SQL EDITION IMPORTANT: KEY FILES CANNOT BE REBUILT ON SQL VERSIONS. AS A WORKAROUND, RUN DBCC MAINTENANCE ON THE SQL DATABASE AND TABLES ONCE EACH WEEK BY: a. Start SQL Query Analyzer b. Type 'DBCC' c. Highlight the text above and press 'Shift+F1'.