How to run a program from an ESP REXX exec.
The REXX commands LINKMVS and ATTCHMVS can be used as per the IBM manual.
Example:
ADDRESS ATTCHMVS 'TESTPGMA var1 var2 var3'
The above will run program TESTPGMA and pass parameters var1, var2 and var3.
These 2 commands will get the programs from the LINKLIST or the STEPLIB/JOBLIB.
Note: Program comes from ESP STEPLIB/JOBLIB and the library must be APF authorized.