ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Compile RPGLE With USPRF *OWNER as Another User

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • john.sev99
    replied
    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.

    Leave a comment:


  • Scholli2000
    replied
    Thank you. That's easier than I thought

    Leave a comment:


  • Scott Klement
    replied
    After creating the program, run CHGOBJOWN to change the owner.

    Leave a comment:


  • Scholli2000
    started a topic Compile RPGLE With USPRF *OWNER as Another User

    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
Working...
X