From the course: Migrating COBOL Apps
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Solution: Refractoring - COBOL Tutorial
From the course: Migrating COBOL Apps
Solution: Refractoring
(electronic music) - [Instructor] Let's have a look the changes we need to make to the desr 103 code. Nano minus l desr-1.03.cob. At line 451 we can see that we need to set the four parameters, WS permute size, WS from array, WS to array, and WS permutation table. And then call permute. The first of the two code segments starts at line 460. At line 462 we change the selection of the bit from the IP1 table to use permabit. This is again a 64 bit permutation using IP1, which is the second table. And moving from AC eight to AC nine. We can remove the segment of code from lines 460 to 465. And replace it with the new lines. Move 64 to WS permute size. Move eight to WS from array. Move nine to WS to array. Move two to WS permutation table. Perform permute. The second segment of code is at lines 543 to 548. And this is a 32-bit permutation. Moving from AC six to AC four, based on the third…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
Prepare to refactor code1m 56s
-
(Locked)
Refactor the DESR application8m 25s
-
(Locked)
Remove redundant labels1m 19s
-
(Locked)
Resize applications1m 30s
-
(Locked)
Make code segments generic5m 30s
-
(Locked)
Challenge: Refactoring32s
-
(Locked)
Solution: Refractoring3m 14s
-
(Locked)
Introduce structure through subprograms2m 39s
-
(Locked)
Remove dead code3m 27s
-
(Locked)
Refactor data1m 58s
-
(Locked)
The challenges of migrating to a relational database4m 4s
-
(Locked)
Refactoring, continuous integration, and self-testing3m 52s
-
(Locked)
Observations on the paradigm shift2m 21s
-
(Locked)
The refactoring catalog2m 44s
-
-
-