|
Here's an example from
https://www.ibm.com/docs/en/i/7.5?topic=services-display-journal-table-function
Find all changes made by SUPERUSER against the PRODDATA/SALES table.
The first two arguments are passed without names since they
correspond with the first two parameters for the function. The other
four arguments are passed using the parameter name syntax to avoid
specifying a value for the parameters that are not needed.
SELECT journal_code, journal_entry_type, object, object_type, X.*
FROM TABLE (
QSYS2.Display_Journal(
'PRODDATA', 'QSQJRN', -- Journal library and name
OBJECT_LIBRARY=>'PRODDATA', OBJECT_NAME=>'SALES',
OBJECT_OBJTYPE=>'*FILE', OBJECT_MEMBER=>'SALES'
) ) AS X
WHERE journal_entry_type in ('DL', 'PT', 'PX', 'UP') AND
"CURRENT_USER" = 'SUPERUSER'
ORDER BY entry_timestamp DESC;
--
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
petercdow@xxxxxxxxx<mailto:petercdow@xxxxxxxxx>
pdow@xxxxxxxxxxxxxx<mailto:pdow@xxxxxxxxxxxxxx>
/
On 8/8/2024 9:05 AM, Jim Oberholtzer wrote:
I need to show that three different users did not update a physical table--
for a specific set of dates. To explain more,
table mylib/abcd
journaled by QSQJRN
user1, user2, user3
dates between 4/1/24 and 4/5/24
Show what (if any) rows were updated by those users. Google is not being
friendly today.
--
Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto: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<mailto: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<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related
questions.
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.