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.