Btrieve, Pervasive.SQL and Actian Zen: getting the records out with their real layout

Somewhere on a server is a folder of .DAT files only one program understands, and an engine license tied to the machine you are about to retire. We read the records with their real layout, prove the totals match the old package, then decide with you whether it keeps running.

Book a Legacy Assessment Rewrite, convert or wrap?

Before DOS · Btrieve 6.15 · .DAT files on a NetWare volume
ACCTG.EXE
Customer Ledger
Customer     : C-10442  BRAXTON SUPPLY
Terms        : NET 30
Last payment : 03/14/1997
Balance      : 12,407.35
F2 Save F7 Find F10 Post Esc Menu
After .NET 8 · SQL Server · same ledger, same balance
ledger.yourcompany.local/customers/C-10442

Braxton Supply PARITY ✓

Terms NET 30
Last payment 1997-03-14
Balance 12,407.35
Engine license none needed
Save

Illustrative screens, fictional data. One customer, one balance, matching to the cent after every posting in between was replayed.

The situation you are probably in

Btrieve was written in 1982 by Doug and Nancy Woodward’s SoftCraft in Austin, bought by Novell in 1987 to ship with NetWare, spun out in 1994 as Btrieve Technologies, renamed Pervasive Software in 1996, and bought by Actian in 2013. After PSQL v13 it became Actian Zen. Real accounting software grew up on it: early Accpac (now Sage 300) started on Btrieve, Peachtree versions 5 to 8 expected Btrieve 6.15, and earlier Great Plains Dynamics releases ran on Btrieve and Pervasive. The engine is still sold, so trouble rarely starts with the software. It starts with a server move:

  • The data files don’t describe themselves. A Btrieve file knows its record length and its indexes, and not much else. Field names and types live in DDF files (FILE.DDF, FIELD.DDF, INDEX.DDF and a few more) or only in the application’s source. Some vendors never shipped DDFs, others never updated them when fields were added.
  • The application talks to the MicroKernel through the Btrieve API, record by record. Report writers, ODBC and Excel go through the SQL engine, which sees only what the DDFs describe. When the two disagree, the program is right and the reports are wrong, which is the worst way round to find out.
  • One folder can mix file formats, a 1990s file next to 9.5 and 13.0 ones. Btrieve 6.15 was a rewrite, and Actian’s docs say Zen v16 cannot read the older 5.x files at all; only the standalone rbldcli_offline converts them. Upgrade the engine before checking file versions and a working system can simply stop.
  • Licenses are bound to the machine. Actian says to deauthorize a key before changing hardware; if the old server dies first, the key on the new one can land in “failed validation”. Many keys came from the application vendor, and user-count increases must carry the same vendor ID, so a vendor that closed years ago can still stand between you and a working server.
  • With Workgroup engines on several PCs, the first one to open a shared folder becomes its gateway and writes its name into ~PVSW~.LOC. Retire that PC and everyone else gets status 116.
  • Some files carry an owner name, Btrieve’s file-level password, sometimes with the data encrypted. Without it you get status 51, or read-only access if the file allows it.

How we migrate Btrieve and Pervasive systems

  1. Assessment: map what you actually have

    We inventory the code, data, reports, integrations and — crucially — which parts are still used. You get a written, risk-ranked migration roadmap at a fixed price, yours to keep whoever executes it.

  2. Parity harness: capture today’s truth

    Before any new code, we build an automated harness that runs your real workflows on the existing system and records the results — totals, calculated fields, rounding, sort orders. That becomes the contract the new system must satisfy; behaviour is preserved because it is tested, not assumed.

  3. Data first, verifiably

    A repeatable pipeline moves your data into SQL Server or PostgreSQL with counts and checksums on every run — encodings, null and date semantics, and any business logic hidden in indexes handled explicitly. The mirror runs from day one, so it is always fresh.

  4. Rebuild in slices on .NET

    Modules are rebuilt on .NET 8 against the mirrored data. Read-only functions (reports, lookups) move first for instant, low-risk value; write functions cut over one workflow at a time, each gated by parity. There is no weekend where everything switches at once.

  5. Cutover with a way back

    When the last write path passes parity, the old system becomes read-only, then an archive. You get the full parity report — evidence, not assurances — plus the documentation the legacy system never had.

What survives the migration

  • Every record, starting from the bytes we decode raw copies with the DDFs where those are trustworthy, and rebuild the layout where they are not, using the package’s own screens and reports as the reference. A field that prints as a date on the aging report is a date, whatever the dictionary says.
  • DDFs that finally match the files even if the old package stays, corrected dictionaries give you ODBC access to live data now. Actian’s DDF Builder fixes definitions without writing to the data file, and so do we.
  • Month-end and year-end totals trial balance, aging, stock valuation, rerun on the new side and compared to the cent, period by period.
  • Closed years history the old package shows only on its own screens moves to a SQL archive you can query without an engine license.

What does not survive: a machine-bound license that has to be begged back from a vendor, gateway locator files, owner names nobody recalls, and old-format files the next engine release will refuse to open.

Related

Clarion applications could store their data in Btrieve as well, so see Clarion migration if yours was written in Clarion. A still-sold engine with a server-bound license is also the story of Advantage Database owners. If the package keeps the books of a distributor or a plant, see wholesale distribution and manufacturing.

Frequently asked questions

We are moving to a new server. What happens to the Pervasive license?

Deauthorize every key on the old server while it still runs, increase keys included, then authorize them on the new one. That needs internet access; offline deauthorization goes through Actian support. Note the vendor number on each key first, because keys from your application vendor are reset by that vendor. If the old server is already dead, expect a repair or reset. And if users get status 161 on the new box, the license count is used up or a temporary key from the move has expired.

What should we do in the first week?

Copy the whole data directory, DDFs included, with users out or the engine stopped; a file copied mid-write is not a backup. Record the engine version, every license key with its vendor number and user count, and each file’s format version, which the Maintenance utility shows. Check for owner names. Then leave the engine version alone until you know what every file is.

Our accounting vendor is gone. Can the package keep running?

Often, yes. Actian still updates Zen, so the engine is not the dead part. Containment means an engine version that still reads your file formats, licenses moved properly, DDFs corrected so reporting works, and a backup that has been restored at least once. It does not bring back tax tables or compliance updates for the package, and that usually sets the real deadline.

Excel and our report writer show different numbers from the program. Why?

Almost always the dictionary. The program reads records through the Btrieve API with its own built-in layout; ODBC reads them through the DDFs. If a later release added or widened a field and the DDFs were never updated, every column after it comes from the wrong bytes. Fixing that is often the first useful result of an assessment.

Start with an assessment, not a rewrite.

Send us the stack you are on and what hurts. You get a written read of your data and code, the realistic options — including the ones that cost you less — and what parity testing would cover. Fixed price, agreed before we start.

Book a Legacy Assessment Try the DBF Analyzer