Master directories - abcsoftware/abc-docs GitHub Wiki
The ABC native database uses a tree directory structure. The standard installation uses master.dat
as a directory of company data files. The master directory is at offset 0 in the master.dat
file. The company data files use names like 01comp.dat
, 02comp.dat
, etc. There is a master directory at offset 0 in each company file to direct file tables to different data files. The directory of data blocks starts at offset 1 and is normally 25 blocks long. Use at least 14.08
to edit the master directories.
- Pack the data using the
\
screen. Set the backup device to the destination file.CS 42,1,32768,32768,25
is the usual command. - Run
8-13
on the packed data to determine the highest block used. Also check the number of records. - Initialize your multi-file system by packing
empty.dat
into01comp.dat
. This keeps the master directory at offset 0. Copyempty.dat
to00param.dat
,00common.dat
,00help.dat
,00sort.dat
,00invmas.dat
and01audit.dat
. Make sure yourempty.dat
has a 25 block directory. - Switch to the multiple file system. On the
W
screen useAlt+Y
,<space> P
,01comp.dat
, offset 0. - Set device Q to the packed data file.
-
Important! Set your
#Bfr
parameter to less than 500. This disables the "block directory." - Use
WUTIDIRBUILD
to move data from the packed file into the multiple-file system. Start at block 25. End at the highest block from step 2. - When complete, run
8-13
and compare number of records with number of records reported in step 2.
Caution! Version 13 does not report startup errors properly. It also does not automatically provide the minimum 10 companies on an enterprise authorization. If the server fails to start up in multi-company mode, check your authorization. Without the enterprise package, it will allow up to three companies.
Some ready-made files are available below. You may need to use Internet Explorer to get good downloads.
- Companies.dat (Master directory for 3 companies)
- Companies10.dat (Master directory for 10 companies)
- Company004.dat (Rename for any company number in v16)
- master.dat (Master directory for 3 companies with demo data as company 2)
- master3.dat (Master directory for 3 companies, no demo data)
- master6.dat (Master directory for 6 companies)
- master10.dat (Master directory for 10 companies)
- 01comp.dat
- 01audit.dat
- 02comp.dat
- 02audit.dat
- 03comp.dat
- 03audit.dat
- 04comp.dat
- 04audit.dat
- 05comp.dat
- 05audit.dat
- 06comp.dat
- 06audit.dat
- 07comp.dat
- 07audit.dat
- 08comp.dat
- 08audit.dat
- 09comp.dat
- 09audit.dat
- 10comp.dat
- 10audit.dat
- EMPTY.DAT
- WUTIDIRBUILD.742