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

  • 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

  • #2
    After creating the program, run CHGOBJOWN to change the owner.

    Comment

    Working...
    X