Joined: 11 Dec 2008 Posts: 59 Location: Pune , India
In certain cases you can indirectly determine wether the sub-A1,sub-A2, sub-A3 were called by Program A by looking in the JCL
1) If the called subprograms is processing any file ( opening , closing etc. ) then in the job PGMSTAT ( that executes the calling program ) the subprogram and the file being processed will be mentioned.
2) When the job abends and you have Abend Aid or any other DUMP associated with the job then the calling program details are mentioned in the JCL. This is however system specific.