File Not Properly Closed For Recovery From FILE NOT PROPERLY CLOSED Error Message. To close the data file properly please perform one of the following procedures: PROCEDURE A ÄÄÄÄÄÄÄÄÄÄÄÄ You will need to use the DOS program called DEBUG.COM. Look on your DOS diskette or in the DOS directory on your hard disk. If the file is not there copy it from your DOS Supplemental Programs diskette. At the DOS prompt type the following commands: DEBUG Replace filename with the name of your Q&A file and the drive and pathname if necessary. For example, C:\QA\EMPLOYEE.DTF If you receive the message INSUFFICIENT MEMORY - type Q and proceed to Procedure B. E1B3 xxxx:01b3 01.00 You type the 00 after the period and press Enter. W Q The DOS prompt will now reappear. Start up Q&A and choose File from the Main Menu. In the File Menu, choose Copy, then copy the Design of the form to a new filename. When this is completed, choose Copy Selected Forms and copy to the same file you just created. Press F10 at the Retrieve and Merge Spec screens to begin copying. If this procedure finishes with no error message, the new file is in perfect shape. Use the new file and delete the old file. If you want to, you can go to the Utilities menu and rename the new file so it has the same name as the old file did. Q & A Application Note Rev. 6/92 #2008 Page 1 of 2 File Not Properly Closed PROCEDURE B ÄÄÄÄÄÄÄÄÄÄÄÄ If the datafile is too large to fit into memory using DEBUG.COM, or if you cannot find DEBUG.COM then you can modify the file by typing in the BASIC program described below. NOTE: You must have BASICA.COM and the Q&A datafile which is was not properly closed in the same directory. At the DOS prompt type the following commands: BASICA ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Substitute your ³ ³ file's name in place³ 10 OPEN "filename.DTF" AS #1 LEN=1 ³ of filename.DTF, ³ Ä|ÄÄÄÄÄÄÄÄÄÄ|ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ between the quotes. ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ 15 FIELD #1,1 AS C$ 20 RSET C$=CHR$(0) : PUT #1,&HB4 : CLOSE Press the F4 key. The word "SAVE" will appear. Type in the name "FIX" and press Enter. Now press the F2 function key to run the program. Type SYSTEM The DOS prompt will now reappear. Start up Q&A and choose File from the Main Menu. In the File Menu, choose Copy, then copy the Design of the form to a new filename. When this is completed, choose Copy Selected Forms and copy to the same file you just created. Press F10 at the Retrieve and Merge Spec screens to begin copying. If this procedure finishes with no error message, the new file is in perfect shape. Use the new file and delete the old file. If you want to, you can go to the Utilities menu and rename the new file so it has the same name as the old file did. Q & A Application Note Rev. 6/92 #2008 Page 2 of 2