× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



It turns out it was my mistake. I was adopting authority, but the USRPRF
parameter of the CHGPGM was *USER, when it should have been *OWNER. I know
the difference, but missed the attribute when scratching my head. Thank
you for the responses on this issue.


___________________________________
Darren Strong
Dekko





From: Darren Strong <darren@xxxxxxxxx>
To: "midrange-l " <midrange-l@xxxxxxxxxxxx>
Date: 10/26/2017 12:03 PM
Subject: Running API's as QSECOFR
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>



For a compliance project, I must run the QUSLOBJ and QCDRCMDI apis as
someone with *ALLOBJ. So, I created by program to use adopted authority,
and made its owner QSECOFR. However, it appeared that the QCDRCMDI api
was returning ?????? for the "created by user" field. This makes me
assume that the API is not running with the adopted authority of the
program calling it. So, is tried using the QSYGETPH and QWTSETP apis to
switch my user profile, however, even running with adopt QSECOFR, the
api's can't change the current profile to QSECOFR because it says it needs

*USE authority to the profile.

I might be able to submit a job as user QSECOFR, but I was hoping to run
this directly, because a Lotus Notes process will be calling it, and if
another job is submitted, the Notes process won't know when the process is

complete.



___________________________________
Darren Strong
Dekko


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.