Skip to main content

Searching Legacy Financial Software Code: Case Study

Long-lived business applications gather decisions that are buried in code: rates, limits, codes and thresholds typed directly into programs. Before such software can be documented, audited or migrated, someone has to find every occurrence. This case study shows how TextPipe was used for that search.

Client

A software vendor whose financial software is aimed mainly at the insurance industry. The US office does most of its business internationally and is a subsidiary of a large US financial software holding company.

The challenge

The vendor needed to document the hard-coded values inside a large Microsoft Windows financial application that had been developed over about eight years. That meant searching almost 8,000 COBOL programs, Oracle stored procedures and Oracle forms for specific values.

A plain text search was not enough. The searches had to be complex: parts of each file such as program comments had to be excluded, and similar values that were not exactly the ones being sought had to be ignored. For every search, the results had to be recorded in one text file giving the names and locations of the programs that contained the value.

The solution

After reviewing the text search tools available, the analyst concluded that TextPipe was the only one able to perform these complex searches. The key was combining filters so a line is kept only when it passes several tests, and then reporting file names and line numbers for the survivors. The same pattern-matching features are described on the grep page.

The process

For each search, the analyst decides what information is needed, opens a template filter list and adjusts it. The template has three main steps:

  1. Delete all lines that do not contain the secondary text required on each line, with "Include line numbers" set to no.
  2. Delete all lines that contain text that is not allowed, again with "Include line numbers" set to no.
  3. Select the primary text being sought, this time with line numbers and file names included.

The output lists only the file names and line numbers for the text of interest, which can be used directly as a checklist or loaded into a spreadsheet.

The results

  • One tool for the whole code base. COBOL programs, Oracle stored procedures and Oracle forms were searched with the same template.
  • Precise results. Excluding comments and near matches meant the output listed real occurrences, not noise.
  • Reusable. Each new value only needed a small adjustment to the template filter, not a new program.

Every figure above comes from the client's description. No time savings are claimed because none were reported.

Related reading

The same filters work well for compliance reviews, for example locating account number formats or rate tables across a code base before a migration. See the data mining and data conversion solution pages, and the other banking and finance case studies. Financial firms also revise many Word documents, and WordPipe can do that in batch. See updating risk disclosure statements and replacing sensitive data in Word documents at scale.