× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

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.