×
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.
Even if there was a LF that supported a keyword of CURRENT_USER you'd soon
want it to do more. For example, let's say you had an RPGLE subprocedure
that you passed in 4 variables: x, y, z, currentUser and it determined if
the row should be returned to the user by signalling back a '0' or a '1'
like this:
dou %eof
read myfile;
If %eof;
leave;
endif;
If checkSecurity(x : y : z : user)='0';
iter; // skip row
EndIf;
// process row
...
Now, you could make a UDF out of this RPG subprocedure (I've done it).
Then your view could look like
create view myfileV01 as (
select ... from myfile where checkSecurity(x : y : z : currentuser)='1')
I may have the wrong character for the colon's, and other stuff like that,
but you get the concept.
It makes your existing RPG code into reusable business rules for other
purposes.
Rob Berendt
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.