I get this request all the time from our BI groups.

Select
Substr(OBJECT,1,10) As FILE_NAME,
Substr(OBJECT,11,10) As FILE_LIB,
CNT
From
(Select
OBJECT,
Count(*) As CNT
From
Table
(Display_Journal(
'ODSLIB',
'ODSJRN',
'',
'*CURRENT',
CAST(Null As TIMESTAMP),
CAST(Null as DECIMAL(21,0)),
'R',
'',
'',
'',
'*FILE',
'*ALL',
'',
'',
'')) As A
Group By
OBJECT) As A
________________________________
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> on behalf of Steinmetz, Paul <PSteinmetz@xxxxxxxxxx>
Sent: Thursday, August 16, 2018 4:39 PM
To: 'Midrange Systems Technical Discussion'
Subject: Summarize/count all the PF entries for a specific journal.

I need to summarize/count all the PF entries for a specific journal.
I know I can output all the entries to an outfile, then summarize either by SQL or query.

Is there a way to summarize directly over the journal/journal receiver?

Thank You
_____
Paul Steinmetz
IBM i Systems Administrator

Pencor Services, Inc.
462 Delaware Ave
Palmerton Pa 18071

610-826-9117 work
610-826-9188 fax
610-349-0913 cell
610-377-6012 home

psteinmetz@xxxxxxxxxx
http://www.pencor.com/

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.