Manufacturing
Legacy AS/400 (IBM i) manufacturing ERP data: archive before you retire it
By SourceX Editorial · Updated
Short answer
Archive legacy AS/400 (IBM i) manufacturing ERP data before you retire the system: extract every library to open formats, document file layouts and code values, keep a retention copy for tax, legal and quality needs, and assess which history has further use. Once the people who know its RPG programs leave, the history becomes hard to read.
Key takeaways
- Modernization projects usually migrate open items and masters, leaving most transaction history on the old system.
- Extract to open formats and keep a restorable system save, because each protects against a different failure.
- Field layouts, code tables and program logic must be documented while staff who know them are still available.
- Retention needs from finance, tax, quality and legal set the minimum scope of the archive.
- Some archived history, such as quote-to-order and quality records, may have value beyond retention.
Why AS/400 retirement puts manufacturing history at risk#
AS/400 retirement puts manufacturing history at risk because the data only makes sense inside the system that wrote it. Files in DB2 for i often have short, cryptic names, store dates as plain numbers in house formats, use packed decimal fields and EBCDIC character encoding, and depend on code values defined in other files or inside RPG programs.
Many manufacturers ran a green-screen ERP for decades, sometimes heavily modified. When they move to a new ERP, the project loads item masters, bills of material, routings, open orders and balances. Closed sales orders, production orders, lot history, engineering changes and quality records stay behind on a machine that the company now wants to switch off.
The people risk is as real as the technical one. The programmer who knows which file holds the real ship date, or what an order status code meant before a past modification, may be close to retirement.
The retirement checklist: extract, document, retain, assess#
The retirement checklist has four steps, and the order matters: extract before you document, document before staff leave, set retention before anyone deletes, and assess further use only once the archive is complete and readable.
| Step | What to do | Who leads | Output |
|---|---|---|---|
| Extract | Copy every relevant library and file to open formats; take a full system save | IT and the IBM i administrator | Open-format tables plus a restorable save |
| Document | Describe file layouts, keys, code values, date formats and program logic | IBM i programmer with business users | Data dictionary and program notes |
| Retain | Set retention rules, access controls and a way to query the archive | CFO or controller with legal and quality | Retention schedule and read-only archive |
| Assess | Decide which history has reporting, analytics or licensing value | CEO or CFO with operations | Shortlist of record families and next steps |
- 01Your work records
- 02Personal details removed
- 03You approve the release
- 04Licensed to AI developers
Extract: getting data out of DB2 for i#
Extracting data from DB2 for i means producing two things: open-format copies that any tool can read later, and a restorable save of the original libraries in case a question can only be answered on the system itself. Neither replaces the other.
Convert character data from EBCDIC, unpack packed decimal fields, and keep date fields both in their raw form and converted, so mistakes in conversion can be checked later.
- List every library in use, including custom libraries added over the years.
- Export each physical file to CSV or a columnar format through SQL access, with the field definitions alongside.
- Take a full save of the libraries to save files or tape and confirm it can be restored.
- Export the source members of RPG, COBOL and CL programs, since business rules live there.
- Capture spooled reports that users relied on, as reference copies of how numbers were presented.
- Collect documents stored in the integrated file system, such as attachments and scanned files.
- Reconcile record counts and key totals between the system and the extracts.
Document: make the files readable without the system#
Documenting the files means writing down what a future reader needs to understand a table without logging into the old system. For each file, record its purpose, its key fields, what each field means, the date and number formats used, and the code tables it depends on.
Dataset documentation research offers a useful pattern. The Datasheets for Datasets paper borrows from electronics, where every component ships with a datasheet, and asks that each dataset carry one covering why it was created, what it contains, how it was collected and what it should be used for. A one-page datasheet per major file, written by the programmer and checked by a business user, is a practical version.
Note the known quirks too: fields reused for a different purpose after a modification, periods when a process was run outside the system, and records created by conversions from even older software.
Retain: keep what finance, tax, legal and quality need#
Retention needs set the minimum scope of the archive, so the CFO or controller should confirm them before anything is deleted. Tax records are one input. The IRS says to keep records supporting income, deductions or credits until the period of limitations for that return runs out, generally 3 years, with longer periods in some situations, and to keep property records until the limitations period expires for the year the property is disposed of.
Other needs often run longer. Customer contracts, product liability exposure, warranty obligations, quality and lot traceability commitments, and any legal hold can all require older records. List each need, its owner and the record types it covers, then confirm the archive holds them in a form someone can query. Retention periods are general information here; confirm the periods that apply to your company with your tax adviser and counsel.
Illustrative: a valve maker retires its green-screen ERP#
Illustrative: a fictional industrial valve manufacturer ran a heavily modified RPG-based ERP on an AS/400 for most of its history, covering order entry, MRP, shop floor reporting, quality and service. It is moving to a cloud ERP, and the implementation plan loads masters, open orders and balances only.
The CFO insists on an archive workstream. IT extracts every production library to open formats and takes a restorable save. The last in-house RPG programmer spends dedicated time writing datasheets for the order, production, lot and quality files. Finance, quality and legal sign a retention schedule, and the old hardware is retired only after test queries succeed against the archive.
Later, when warranty claims arrive for valves built before the switch, quality traces heat lots in the archive. When leadership asks whether the history could support a data license, the datasheets make the assessment straightforward.
Assess: which AS/400 history may have further value#
AS/400 history may have value beyond retention when it records decisions and outcomes over a long period. Quote-to-order history, MRP exceptions and expedites, production orders with labor and scrap, engineering change history, nonconformance and corrective action records, and service and warranty history are the record families most often worth assessing.
Age cuts both ways. Long histories add depth and show how processes changed, while recency is also a value driver, and records that are hard to decode raise preparation cost. Customer-owned drawings, pricing and export-controlled work are excluded whatever their age.
| Record family | Typical AS/400 source | Further value | Watch for |
|---|---|---|---|
| Quote-to-order | Quote and order files, order history | Estimating and fulfillment decisions | Customer names and pricing |
| Production and labor | Work order, routing and labor files | Planning versus actual performance | Employee identifiers |
| Engineering changes | ECO files, item revision history | Design change reasoning | Customer-owned designs |
| Quality | Nonconformance and inspection files | Defect causes and dispositions | Customer and supplier names |
| Service and warranty | Service order and claim files | Field failure patterns | End-customer details |
How SourceX approaches legacy ERP archives#
SourceX picks up legacy ERP archives once they are extracted and documented. Its first review is a fit check based on a description of the archive, covering modules, years and record families, with no files exchanged. SourceX never hosts multi-terabyte datasets, so an archive of that size remains on the company's servers or travels on encrypted drives if a package proceeds.
In the SourceX Enterprise Data Value Framework, long linked histories can rate well on scale, domain expertise and human-generated signal, while data cleanliness and preparation cost decide how much decoding work stands between the archive and a usable package.
Frequently asked questions
Can we keep the AS/400 running in read-only mode instead of archiving?
Some companies do for a period, but it still needs hardware support, software licenses, security patching and people who can run queries. A documented open-format archive removes that dependency. Many keep the system read-only only until the archive has been tested.
Do we need the RPG source code if we have the data?
Yes. Calculations, status rules and code meanings often live only in the programs. Without the source, a future reader may see a field but not know how it was set. Export the source members and note which programs write each major file.
What format should the archived tables use?
Use widely readable formats such as CSV or a columnar format, with a separate data dictionary. Keep a restorable save of the original libraries as well. Open formats keep the data usable by any tool, and the save covers questions that need the original system.
Who should sign off before the old system is switched off?
The CFO or controller for finance and tax records, legal for contracts and holds, quality for traceability, operations for anything still used day to day, and IT for the archive's integrity. A short sign-off sheet with each owner's confirmation avoids later disputes.
Is decades-old ERP data useful to AI developers?
It can be when records link decisions to outcomes and can be decoded reliably. Very old records may describe processes or products that no longer exist, which lowers their usefulness for some purposes. An assessment of each record family is more useful than a general rule.
Sources
- The IRS says to keep records supporting an item of income, deduction or credit until the period of limitations for that return runs out, generally 3 years, with longer periods in specified situations, and to keep records relating to property until the period of limitations expires for the year in which the property is disposed of. Source
- Datasheets for Datasets borrows from the electronics industry, where every component comes with a datasheet, and proposes that every dataset be accompanied by a datasheet documenting its motivation, composition, collection process, recommended uses and other information. Source
Related resources
See if your company qualifies
A short company assessment. No data uploads are needed.