|
Apparently the answer is yes, I do need to use the SET OPTIONDYNUSRPRF=*OWNER.
or PREPARE like this:
So far in my testing I've found that
ctl-opt usrprf(*owner);
is interchangeable with
exec sql set option usrprf=*owner;
I can use one or the other.
What gets to be the issue is if there is any dynamic SQL such as EXECUTE
exec sql prepare STMT1 from :SQLSTMT;without modifying source or a complete recompile. For example, if I didn't
exec sql execute STMT1;
Then I need the
Exec sql set option dynusrprf=*owner;
also.
Now I'm trying to find out if there's a way to do this after the fact
ctl-opt usrprf(*owner);there some way to change it without recompiling and/or source change? Like
or
exec sql set option usrprf=*owner;
I can simply run CHGPGM PGM(...) USRPRF(*OWNER)
Is there something similar to fix DYNUSRPRF?
PRTSQLINF OBJ(ROB/SECTEST) will tell me the value of this option, but is
As an Amazon Associate we earn from qualifying purchases.
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.