We are making significant changes to old Natural code that has had its share of programmers over the years and we would like to remove all unused variables. I believe that there is a command to find them.
I know of no Natural command for this, but I believe if the programs were compiled with XREF on then the XREF functionality in PRE-DICT might help you.
Personally, I just comment out the suspect variables and then check the program.
There’s a self written tool on www.wizinc.com. Click on the button “Library” and a list of tools will be shown. The document Unused.zip contains a natural program to find unused variables in a program.