ya i agree with vidya.As when u mention compiler option as no dynam this should work.
at the same time if u r compiling the program dirctly by submitting a JCL then while compiling the program P1 pass the object module of P2 in the link edit step of the program P1 and do compile and link edit the program P3 seperately. In the while executing the program keep all load module and then u don't need to mention anything for compiler option.
I think this should work
correct me if i m wrong.