Hi all,
I want to compile a program under MYUSER that should be run under the user profile CALLUSER.
Usually I would log in as that user and compile the program with USRPRF = *OWNER.
So I thought I’d make my life easier and put the compile command in a CL program CMPLPGM that I then compiled under CALLUSER with USRPRF = *OWNER.
When I call CMPLPGM as MYUSER, the resulting PGM object would be created with URSPRF *OWNER, but the owner is MYUSER, not CALLUSER although CMPLPGM has USRPRF *OWNER and the owner CALLUSER.
Are there other ways to achieve my goal?
Thanks,
Markus
I want to compile a program under MYUSER that should be run under the user profile CALLUSER.
Usually I would log in as that user and compile the program with USRPRF = *OWNER.
So I thought I’d make my life easier and put the compile command in a CL program CMPLPGM that I then compiled under CALLUSER with USRPRF = *OWNER.
When I call CMPLPGM as MYUSER, the resulting PGM object would be created with URSPRF *OWNER, but the owner is MYUSER, not CALLUSER although CMPLPGM has USRPRF *OWNER and the owner CALLUSER.
Are there other ways to achieve my goal?
Thanks,
Markus
Comment