Announcement
Collapse
No announcement yet.
Compile RPGLE With USPRF *OWNER as Another User
Collapse
X
-
I think it should be pointed out, that when a program is compiled with "User profile = *OWNER", it doesn't run under that user profile (which has lead to your confusion). This parameter means the system will add the AUTHORITY of that user profile to the current one, if the authority for the current profile is insufficient to perform an action.
- Likes 1
-
After creating the program, run CHGOBJOWN to change the owner.
- Likes 1
Leave a comment:
-
Compile RPGLE With USPRF *OWNER as Another User
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
Tags: None
Leave a comment: