Plex 2E

  • 1.  CL Program Owner

    Posted Dec 10, 2014 07:07 PM

    Our programmers belong to a group profile, QPGMR. When anyone compiles any CL program in the model, they are the owner. I want the owner to be QPGMR. If I set the user profile to QPGMR on the job description identified by the model-value (YCRTJBD), I think the spooled output would go to QPGMR. I don't want that to happen. Spooled output should go to the programmer, Ownership needs to be the group profile.

     

    Does anyone have a suggestion how to set the owner to QPGMR, without having to manually change the object owner after the event? I'd prefer to avoid changing all our source to add a declare statement, or adding a pre-compiler directive to all of them.

     

    Thanks



  • 2.  Re: CL Program Owner
    Best Answer

    Posted Dec 11, 2014 12:27 AM

    Hi David,

     

    Right under the option "Group Profile" in the user profile of the user, there is an option called "Owner". If this owner field is set to *GRPPRF, then any object compiled by the user will be owned by the group profile set in the user profile.

     

    Coming to the job description, specified as YCRTJBD model value, the "output queue" of the JOBD needs to be mentioned as *USRPRF and if you have set the user as QPGMR for the job description, then we need to have the output queue for the user profile QPGMR set as *WRKSTN.

     

    This way, the objects will be owned by the group profile yet the spooled output will go to respective user's work station.

     

    Regards,

    Niraj



  • 3.  Re: CL Program Owner

    Posted Dec 11, 2014 05:36 PM

    Niraj,

     

    ..that’s exactly what I needed. Thanks for your help !



  • 4.  Re: CL Program Owner

    Posted Dec 11, 2014 11:20 PM

    Thanks for letting me know David. I am glad I could help.

     

    Could you kindly mark the original question as "Answered"?

     

    Regards,

    Niraj