You missed the beginning of the email stream (11:31AM EST) where one of my
files was not showing up and Chuck explained why (11:43AM EST).
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Rob
Berendt
Sent: Thursday, July 21, 2016 3:57 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: RE: Question about syspartitionstat table
Can you get that from
SELECT SYSTEM_TABLE_SCHEMA, SYSTEM_TABLE_NAME, SYSTEM_TABLE_MEMBER,
NUMBER_ROWS, NUMBER_DELETED_ROWS, LAST_CHANGE_TIMESTAMP,
LAST_SAVE_TIMESTAMP, LAST_USED_TIMESTAMP, SOURCE_TYPE FROM
qsys2.syspartitionstat
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail
to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
From: "John R. Smith, Jr." <smith5646midrange@xxxxxxxxx>
To: "'Midrange Systems Technical Discussion'"
<midrange-l@xxxxxxxxxxxx>
Date: 07/21/2016 03:41 PM
Subject: RE: Question about syspartitionstat table
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
I need member specific details. Name, active records, deleted records,
etc.
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Rob
Berendt
Sent: Thursday, July 21, 2016 3:18 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: RE: Question about syspartitionstat table
Where do you find documentation on QSYS2.PARTITION_STATISTICS? I've
checked
Knowledge Center and Developerworks and have come up short.
I do know that QSYS2.SYSPARTITIONSTAT is based off of it.
What details are you looking for?
Does this help?
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzajq/rzajqudfobjec
tstat.htm
SELECT * FROM TABLE (QSYS2.OBJECT_STATISTICS('IIAENC ','ALL') ) AS X IBM
at
least documents this UDTF.
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail
to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
From: "John R. Smith, Jr." <smith5646midrange@xxxxxxxxx>
To: "'Midrange Systems Technical Discussion'"
<midrange-l@xxxxxxxxxxxx>
Date: 07/21/2016 01:52 PM
Subject: RE: Question about syspartitionstat table
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
I am looking for a select statement using QSYS2.PARTITION_STATISTICS that
shows me details of what is in library IIAENC.
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Rob
Berendt
Sent: Thursday, July 21, 2016 1:28 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: RE: Question about syspartitionstat table
Depends
SYSTABLES
SYSVIEWS
SYSINDEXES
Some of the above are based off of QADBXREF
SYSPARTITIONSTAT
SYSTABLESTAT
SYSINDEXSTAT
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail
to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
From: "John R. Smith, Jr." <smith5646midrange@xxxxxxxxx>
To: "'Midrange Systems Technical Discussion'"
<midrange-l@xxxxxxxxxxxx>
Date: 07/21/2016 12:53 PM
Subject: RE: Question about syspartitionstat table
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
OK, I'm obviously having a brain fart or something and my best friend
Google
isn't being very helpful. Can you please send me the select statement
that
will show me all of the details for the files in library "IIAENC"?
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
CRPence
Sent: Thursday, July 21, 2016 12:20 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Question about syspartitionstat table
On 21-Jul-2016 11:03 -0500, John R. Smith, Jr. wrote:
Am I doing something wrong or does QSYS2.PARTITION_STATISTICS not
exist in 6.1?
The failing invocation and errors are not given [i.e. I do not know
what
you are doing]. But, a typical issue for [that particular] UDF is failing
to use the required CHAR(10) typing for the two input arguments.
The SQL will by default, treat literals as VARCHAR, so literals would
need
to be wrapped in a casting function such as the following, so the
type-matching allows for proper routine [aka function] resolution [the
process by which a compatible routine is found in the catalog]:
CHAR('LITERALVAL', 10)
Running the following query should be expected to produce the
[truncated]
results shown, on a v6r1 system:
select
parmmode as mode
, char(parmname, 25) as parameter_name
, char(data_type, 9) as data_type
, dec(charlen, 5) as charlen
from sysroutines r
join sysparms p
using (specific_schema, specific_name)
where routine_schema = 'QSYS2'
and routine_name = 'PARTITION_STATISTICS'
order by parmno
; -- report output from above query:
....+....1....+....2....+....3....+....4....+....5...
MODE PARAMETER_NAME DATA_TYPE CHARLEN
IN SYSTEM_TABLE_SCHEMA CHARACTER 10
IN SYSTEM_TABLE_NAME CHARACTER 10
.
--
Regards, Chuck
--
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:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
As an Amazon Associate we earn from qualifying purchases.