Shared Variable Usage in a Functional Unit

One of the common tasks in modernization is replacing the use of shared variables with explicitly passed parameters or references to persistent procedures or objects.

This report starts with a particular FunctionalUnit, i.e., one menu selection or batch program which performs some function in the application, links to the main compile unit which is run to perform that function, and then follows the links to all of the compile units reached by those compile units. In each of the compile units it shows all the shared variables and whether they are declared new. The report shows when the variable is assigned to or assigned from and flags any that are neither as unused.

The ABL report and a sample output are provided.


AttachmentSize
shared.txt97.93 KB
SharedInCU.p4.76 KB