Hi,
i have to check the quality of the Natural code before upload it, and among other things i have verify there are no unused variable, internal subroutines unused or commented code.
I’m trying to do this with Natural, reading code to check with USR1057N and processing code line to line. It’s very simple to detect commented code searching first characted ‘’ or with SCAN('/’), but it so more complicated to identify unused variables.
I’d like to use te result of LIST COMPOUT to find unused variables, but i don’t know how to call this from Natural code. I couldn’ find any SYSEXT utility or similar to do this.
Any idea how to do it?
I know there is a SYSEXT that recover the variables from a program, but identify if each one is used in the program could be more complicated when LIST COMPOUT offers it.
Our Natural version is 8.2.3.1
Thanks!