From the course: Migrating COBOL Apps

Unlock the full course today

Join today to access over 24,000 courses taught by industry experts.

Refactor data

Refactor data

- [Instructor] Getting the data structures right is a crucial part of any migration. The file structures will usually be refactored by designing a completely new database schema, and either running a data conversion routine or incrementally moving the data into areas of the new database. Working storage is just as important as file structures, as a well structured and clear set of working storage variables makes for a great start to a smooth transition. We've already seen how we can make a program more understandable by renaming a variable when we changed I One to WS permutation index. While it's more of a boast, it means more to the person who has to maintain and migrate the code in a few years' time. Another common way to improve the reliability of legacy code is to replace a variable which stores the result of a calculation or query with a call to a functional section, which will calculate the value as required. This…

Contents