Jim,
Exactly what I was looking for.
I change my journal to a new receiver once a week, Sunday, 3:30 am.
This went back to that point.
23 million receiver records.
Took some time and resources to run.
15 minutes on P7-8205 with all SSD drives.
As a test and out of curiosity,
DSPJRN same journal, all files, to an outfile.
Same number of records, 7 minutes.
Paul
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jim It
Sent: Thursday, August 16, 2018 5:05 PM
To: Midrange Systems Technical Discussion
Subject: Re: Summarize/count all the PF entries for a specific journal.
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.