We are in the process of mining the existing system for business rules.
We would like to speed up the process by exracting logic from the source.
In principle the compiler interrogates the source to be able to compile. I would like to use the same method it uses to identify the “IF logical-condition”.
Is there a way I could interface with the compiler, or are there user functions that can interrogate code and extract statements and conditions etc?
I am aware of the ability to call API functions like USR2018N. I could not find other functions that could do more, or any documentation on the funcitons that are available to me.