This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).
We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:
Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,
Post an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.
IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.
ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.
See this idea on ideas.ibm.com
I think the current behavior is quite confusing. For example, if I'm trying to retrieve the QAUDJRN "PW" entries from a specific receiver, I might try this:
SELECT *
FROM TABLE (
SYSTOOLS.AUDIT_JOURNAL_PW(STARTING_RECEIVER_LIBRARY => 'QSYS',
STARTING_RECEIVER_NAME => 'Q9B6300332',
ENDING_RECEIVER_LIBRARY => 'QSYS',
ENDING_RECEIVER_NAME => 'Q9B6300332') );
But due to the default value of STARTING_TIMESTAMP (which is "CURRENT DATE - 1 DAY") I will get no results back if this journal receiver is a few days old. I think if I'm specifying a particular starting receiver, I should get all of the PW entries starting with that receiver. It's very misleading to get back zero results. It makes it seem like there were no PW entries in that receiver.
The DSPJRN command doesn't make such assumptions about the start date/time. That's probably why the behavior of the SQL table function throws me off.
Idea priority | Low |
By clicking the "Post Comment" or "Submit Idea" button, you are agreeing to the IBM Ideas Portal Terms of Use.
Do not place IBM confidential, company confidential, or personal information into any field.
With 40 table functions that would need to be modified, we do not believe the cost of implementing a change would have an adequate benefit to the community.
Db2 for i development team
IBM Power Systems Development
Ok thanks. Maybe a new parameter that overrides the default behavior? I know that changing the current default behavior could introduce issues for other users, who have already built tools based on the current behavior of the functions.
We will investigate what it would take to issue an SQL warning for the situation you describe. We realize that most users ignore warnings, so this solution might not be helpful. The cost of modifying almost 40 existing functions to issue a warning is also a consideration when it comes to prioritizing this Idea request.
Any comments from the community about our proposed solution while we continue our investigation would be appreciated.
Db2 for i development team
IBM Power Systems Development
Try this, hopefully using the *CURCHAIN value with time offset will help you
Steve Bradshaw,
Member of CEAC, TD of i-UG.co.uk & Friendly Techie at RowtonIT.com
SELECT journal_code, journal_entry_type, object, object_type, X.*
FROMTABLE (
QSYS2.Display_Journal(
'QSYS', 'QAUDJRN', -- Journal library and name
STARTING_RECEIVER_NAME =>'*CURAVLCHN', -- Start from first receiver in the current chain
JOURNAL_ENTRY_TYPES =>'PW' , -- Journal entry types
STARTING_TIMESTAMP =>CURRENT TIMESTAMP - 24HOURS-- Time period, this can be Minutes, Hours, Days, Months
) ) AS x ;