Running an IBM PASE for i program from within IBM® i programs
You can call the Qp2CallPase() and Qp2CallPase2() ILE procedures from within other ILE procedures to start and run an PASE for i program.
Use the Qp2RunPase() API to run an PASE for i program.
You specify the program name, argument strings, and environment
variables.
The Qp2RunPase() API runs an PASE for i program in the job where it is called. It loads an PASE for i program (including any necessary shared libraries) and then transfers control to the program.
This API gives you more control over how PASE for i runs than QP2SHELL() and QP2TERM().