Blumenthal Software, Inc.

Info sheet: Problem with REBUILD, or error 10465 (PBS DOS only)

Inability to rebuild a file, or Error 10465 is caused by an attempt to Rebuild a file where a SAV file is already present. As explained in the manual, Rebuild does the following:

  1. Rename the DAT file SAV (e.g. PAT.DAT becomes PAT.SAV)
  2. Open a new (blank) DAT file
  3. Read each record from the SAV file and write it to the new DAT file.
  4. Delete the IX file (the index file) and read each record in the new DAT file, writing the index keys to the IX file. Note that it does this once for each index for that particular file; some files have one index, others have two or three.

Error 10465 occurs at step 1: if a SAV file already exists, the process fails. To correct the problem, you must first backup your data files and then do the following:

  1. Run SCANDISK (for Win95 or DOS6) or CHKDSK/F (for early DOS machines) to fix any disk problems you may have. (If you are on a LAN/network, consult your network consultant for instructions how to do this).
  2. Get out of PBS and to a DOS Command Prompt (sometimes called a "C prompt"). If you have a "Menu" system, you will have to figure out how to use it to get to a command prompt, since it is your menu, not PBS' menu. If you are using Windows 95, click on Start/Programs; find MS-DOS Prompt and click on it
  3. Change to the PBS3 directory: "CD \PBS3". (Please type commands shown within quotations, but not the quote marks themselves.) Note that if you have installed PBS into a directory not named PBS3, then you have to know that name and substitute it in the CD command. Likewise, if you have set up a multiple data set installation, you must know the names of those directories where you have instructed PBS to store the data for the particular provider with whose data you are having the problem.
  4. Safety precaution: create a safe directory and copy the files to it before deleting anything: First, type "MD XXX" to create the directory, and then type "COPY PAT.* XXX" to copy all the PAT files there. (I am using the PAT files as an example; please substitute TRANS or PRINTSW or whatever file you are having trouble with.)
  5. The following instructions use the PAT file as an example; you must substitute the name of the actual file (e.g. substitute TRANS for PAT in the following commands). Enter "DIR PAT.*" and look at the entries on the list of the PAT.DAT and the PAT.SAV files and their sizes and datestamps. PLEASE BE CAREFUL HERE; THE NEXT STEP COULD LOSE DATA! Here is where you have to use some judgement:

The final step, after all the above, will be to return to pbs3 and rebuild the file.


Blumenthal Software Home page

If you have any comments, questions, or suggestions, please send email to info@blumenthalsoftware.com