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



Thanks Rob - i'm filing this away for when this project comes to fruition.
:-)

John

<snip>
------------------------------
message: 3
date: Thu, 1 Feb 2018 16:10:52 -0500
from: Rob Berendt <rob@xxxxxxxxx>
subject: Re: Information available when a db2 trigger fires off/calls
an rpg program.

"If" you have your journal configured right, and include program, and
program library data, like this:
CHGJRN JRN(#MXJRN/BPCS_ALL) JRNRCV(*GEN)
RCVSIZOPT(*RMVINTENT *MAXOPT3)
FIXLENDTA(*JOB *USR *PGM *PGMLIB)

Then it becomes extremely easy to find out who modified the data outside
of BPCS.

SELECT journal_code, journal_entry_type, object,
x.current_user, job_name, job_user, job_number,
program_name, program_library,
remote_port, remote_address, system_name,
X.*
FROM TABLE (QSYS2.Display_Journal(
OBJECT_NAME => '*ALLFILE',
OBJECT_MEMBER => '*ALL',
OBJECT_LIBRARY => 'ERPLXF',
OBJECT_OBJTYPE => '*FILE',
JOURNAL_LIBRARY => '#MXJRN',
JOURNAL_NAME => 'BPCS_ALL',
STARTING_TIMESTAMP => TIMESTAMP(current date - 1 days),
STARTING_RECEIVER_NAME => '*CURCHAIN'
) ) AS X
Where program_library not in('ERPLXUSRO', 'ERPLXEC', 'ERPLXPTFO',
'ERPLXO');

Helping you out let me know that we have three of these but not *PGMLIB. I

may consider adding that.

Disclaimer: One might consult with their HA vendor prior to making any
journal changes. Adding additional data to your journals may affect
bandwidth to remote journals (if your HA vendor does that sort of thing).

Rob Berendt
</snip>
<br />
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.