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



Apparently the answer is yes, I do need to use the SET OPTION DYNUSRPRF=*OWNER.

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 or PREPARE like this:
exec sql prepare STMT1 from :SQLSTMT;
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 without modifying source or a complete recompile. For example, if I didn't use either
ctl-opt usrprf(*owner);
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 there some way to change it without recompiling and/or source change? Like CHGSQLINF?

Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.