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



... very strange design!!! will be punished with bad performance and bad scalability.

create view testtableview as (select * from AROPNHST);
grant select on testtableview to dummy
will do the same.

D*B

<Rob>
Got this working:

set current schema = ERPLXFRNUF;
CL: CRTUSRPRF DUMMY;
-- DUMMY tries SELECT * FROM AROPNHST and it fails authorization

-- drop function TESTTABLEFUNCTION;
CREATE FUNCTION TESTTABLEFUNCTION ()
RETURNS TABLE (CUS_NO CHAR(12),
DOC_DT DECIMAL(8, 0),
DOC_NO DECIMAL(8, 0),
DOC_TYPE VARCHAR(1),
APPLY_TO_NO DECIMAL(8, 0),
AMT_1 DECIMAL(18, 2),
AMT_2 DECIMAL(16, 2),
REFERENCE VARCHAR(74))
LANGUAGE SQL
READS SQL DATA
NO EXTERNAL ACTION
DETERMINISTIC
DISALLOW PARALLEL
SET OPTION DYNUSRPRF=*OWNER, USRPRF=*OWNER
RETURN
SELECT *
FROM AROPNHST
;

CL: CHGOBJOWN OBJ(ERPLXFRNUF/TESTT00001) OBJTYPE(*SRVPGM) NEWOWN(SSA);

create view testtableview as
select * FROM TABLE(ERPLXFRNUF.TESTTABLEFUNCTION());

SELECT * FROM TESTTABLEVIEW;
-- DUMMY can run this.
</Rob>

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.