You can automate which programs call which programs using the COMPILE XREF functionality. The compile XREF can tell you who calls who, as well as the parameters.
I'm not sure what you are looking for here.
For this, as well as probably the example of calling, you are going to want to look at...