The easiest way to solve your problem is to set your modules (Service Program) to adopt authority too.
Assuming that the owner of your programs are QSECOFR…
The command you use to set your main program to adopt authority is CHGPGM. For example:
CHGPGM PGM(MYPGM) USRPRF(*OWNER)
The modules associated with the main program are service programs though and you will need to set them to adopt authority using the CHGSRVPGM command. For Example:
CHGSRVPGM SRVPGM(MODULE1) USRPRF(*OWNER)
CHGSRVPGM SRVPGM(MODULE2) USRPRF(*OWNER)
That's all there is to it….
|