Clarion migration — older Clarion apps off TPS and DAT files, with the numbers proven

Clarion is still sold and still updated. The application your business runs is a different matter: written years ago in Clarion for DOS or an early Clarion for Windows, last regenerated by someone who has since moved on, with its data in TPS files that only Clarion tooling reads properly. We move it to SQL and .NET and check, report by report, that it still adds up the same way.

Book a Legacy Assessment DOS app on Windows 11?

Before Clarion for DOS · CUSTOMER.DAT + .K01/.K02 · .MEM
ORDERS.EXE
Update Customer
Account    : C-01187
Company    : HARBOR VALVE & FITTING
Terms      : NET 30
Last order : 11/03/26
Balance    : 12,406.75
Ins=Add Enter=Change Del=Delete Ctrl-Enter=Save Esc=Cancel
After .NET 8 · SQL Server · same keys, same totals
orders.yourcompany.local/customers/C-01187

Customer C-01187 PARITY ✓

Company HARBOR VALVE & FITTING
Last order 2026-11-03 (was day 82,490)
Balance 12,406.75
Storage no .DAT/.K01 pair to drift apart
Save

Illustrative screens, fictional data. Clarion keeps a date as a count of days since December 28, 1800, so the raw value behind “11/03/26” is a plain integer; the new system has to land on the same calendar day.

The situation you are probably in

Clarion started as a DOS product in April 1986. In 1992 the company merged with JPI, the compiler house behind TopSpeed, and by 1994 it was calling itself TopSpeed Corporation. In May 2000 the product line went to SoftVelocity, which shipped Clarion 12 in May 2025. The language is alive. Your copy of it usually is not, and that is where these projects start:

  • The real source of a Clarion Windows app is the .APP file and the dictionary (.DCT) beside it. The .CLW files on disk are output, and a hand fix in one of them vanishes on the next generate. Step one is finding out which of the two the running .exe was actually built from.
  • Business rules sit in embed points, hand-written code injected into generated procedures, and an app with two hundred procedures can hide them in any of them. Built with third-party templates nobody has installed since? Then the .APP may not even generate on a new machine.
  • TPS is TopSpeed’s own format, and one .TPS file can hold several tables (Clarion addresses them as file.tps\!table), though most apps keep one per file. Outside Clarion you read them through SoftVelocity’s TopSpeed ODBC driver, which is 32-bit only, or through reverse-engineered parsers whose own readmes tell you to check the output.
  • DOS-era apps use the older Clarion driver: a .DAT file, one .K01, .K02… per key, a .MEM for memos. Keys maintain themselves; INDEX files only change when the program runs BUILD. And on 64-bit Windows nothing runs at all without an emulator.

How we migrate Clarion 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

  • The rules in the embeds discount logic, credit holds, every “if the customer is in Ohio” buried in procedure code, pulled out of the .APP (or observed in the running program when the .APP is gone) and pinned down by tests.
  • Your data, exactly Clarion LONG dates, BCD DECIMAL amounts, memos and BLOBs, multi-table TPS files and owner-password-protected ones. Counts and checksums per table, every run.
  • Keys and relations from the dictionary the unique keys and parent-child links the .DCT declares become real SQL constraints, enforced outside the app for the first time.
  • Reports people sign off on the same totals and the same page breaks where they matter, or a written explanation of each difference.

What does not survive: the one machine that can still generate the app, and the hourly backup routine that exists because nobody quite trusts the TPS files on that share any more.

Related

Clarion for DOS also shipped Btrieve and dBase-compatible drivers, so your data may already be DBF (dBase/DBF migration, free DBF Analyzer) or Btrieve (Btrieve/Pervasive migration). DOS-era Clarion shares its Windows 11 troubles with Clipper programs: see Clipper/xBase migration and why old DOS programs break on Windows 11. The upgrade-or-rebuild question is in rewrite vs convert vs wrap.

Frequently asked questions

Clarion is still sold. Why not just upgrade to Clarion 12?

Sometimes that is the right answer, and the assessment will say so. If the .APP still opens with all its templates and you have a Clarion developer to look after it, upgrading can be the cheapest path. SoftVelocity says Clarion 12 compiles Clarion 11 projects unchanged; from much older versions the templates changed underneath you, and procedures moved through a TXA export do not always behave as before. If the people who knew the app are gone, an upgrade keeps that problem on a newer compiler.

We only have the EXE and the data files. The .APP is lost.

Then the running program and its data become the specification, which is exactly what a parity harness is built from. We drive the old app through its real workflows, record what it writes and prints, and rebuild against that. The TPS or DAT files are readable without the source; the rules have to be observed rather than read.

Can we get at the TPS data in Excel or Power BI while this is going on?

Through the TopSpeed ODBC driver, from 32-bit tools, yes. 64-bit Office or Power BI needs an ODBC bridge, and users report the odd crash along the way. The better route is the one we build in the first phase anyway: a nightly SQL copy any reporting tool can read without touching the live files.

TPSFIX says the file is repaired, but the numbers look off.

TPSFIX, the repair utility that ships with Clarion, is what everyone runs first, and it does not always work; one long forum thread about TPS files breaking on a NAS ends with “restored from backup” and an hourly backup schedule. Treat a repaired file as suspect. Keep the damaged original, compare record counts and a few known totals with the last good backup, then look at why it broke, starting with file-server locking and antivirus on the data folder.

Our Clarion for DOS app runs on one old XP machine. Is migration the only option?

No. Keeping it running under an emulator such as vDos, with printing redirected to a Windows printer, is a legitimate outcome and often a matter of days. The 1997 agency system case is that kind of rescue, done entirely by email.

How do we know whether our app is on TopSpeed, DAT or SQL?

Look in the data folder: .TPS means TopSpeed, .DAT with .K01 files means the old Clarion driver, .DBF means the dBase-compatible driver. If there are no data files at all, the dictionary probably points at SQL Server or ODBC, and the data half of the job is easier. The rules are still in the embeds either way.

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