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.