× 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.



From the docs...
https://www.ibm.com/docs/en/i/7.5?topic=ssw_ibm_i_75/cl/crtbndcl.html#CRTBNDCL.REPLACE


1. Specifying *YES on this parameter causes the values on the USRPRF and
AUT parameters to be ignored. The existing program is used as the source of
authority, and the user profile attribute is copied from the existing
program to the new program. To change the profile you can use the Change
Program (CHGPGM) command. To change the authority for the program you can
use the Grant Object Authority (GRTOBJAUT) or Revoke Object Authority
(RVKOBJAUT) command.


Charles

On Mon, Nov 11, 2024 at 8:04 AM Greg Wilburn <
gwilburn@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

Just wondering if this is an issue, or if I'm doing something wrong.

I have a CLLE program (interactive) that needs to use adopted authority in
order to submit an SFTP job as a specific user.

When I looked at the CLLE pgm, Use Adopted Authority was *YES. However,
User Profile was *USER.
So I recompiled the program like this (from RDi):
CRTBNDCL PGM(ASTHHOBJ/CCF100STR) SRCFILE(HHPIFSRC/QCLSRC)
SRCMBR(CCF100STR) OPTION(*EVENTF) USRPRF(*OWNER) REPLACE(*YES)
DBGVIEW(*SOURCE)

I did this twice - but the user profile on the program was still *USER.

To get this to work I had to issue the following from the command line:
CHGPGM PGM(CCF100STR) USRPRF(*OWNER)

Am I missing something?
Do I need to delete the object before compiling?

TIA,
GReg
[Logo]<https://www.totalbizfulfillment.com/> Greg Wilburn
Director of IT
301.895.3792 ext. 1231
301.895.3895 direct
gwilburn@xxxxxxxxxxxxxxxxxxxxxxx<mailto:gwilburn@xxxxxxxxxxxxxxxxxxxxxxx>
1 Corporate Dr
Grantsville, MD 21536
www.totalbizfulfillment.com<http://www.totalbizfulfillment.com>
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.



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.