× 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.



Need some help here -- typing this from memory so I may have a few things
misspelled.

What I have

select
index_schema,
index_table,
index_name,
index_size
from qsys2.systemstat
order by index_size;


How do I SUM index_size???

I thought that after I put

index_size I would put in a line
sum(index_size) as sum_index_size

Does sum_index_size need to be defined somewhere?

Thomas


On Wed, Apr 11, 2018 at 6:01 PM, Diego Kesselman <diegokesselman@xxxxxxxxx>
wrote:

Evan,

Sorry , you are right!


El 11/04/18 a las 17:55, Evan Harris escribió:

Diego makes a good suggestion

First, The English version is "Statements" bit "Sentences"

After taking the snapshot I think you need to runt he Analyze function;
after that you can view the statements in the snapshot.

Locate your jobs in the list of statements using the time and/or job
number
as a guide. Once you've located the statement(s) if you click on it you
get
even more information about what was being done.

That will allow you to compare the statements that were actually run to
check they were actually identical - you can also see the variables that
were plugged in there if there are placeholders etc.

On Thu, Apr 12, 2018 at 8:17 AM, Diego Kesselman <
diegokesselman@xxxxxxxxx>
wrote:

Mike,

https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/
rzajq/rzajqplancacheprocs.htm


1) Taking the snapshot:

STRSQL
CALL qsys2.dump_plan_cache('QGPL','SNAPSHOT1')

2) Using Navigator

Go to Databases-> <Name of your DB> -> SQL Plan Cache -> SQL Plan Cache
Snapshot
Right-click on SNAPSHOT1 (the name of the snapshot you've just created)
and click on "Sentences" (not quite sure, but something like that)

3) Look for your job
Right-click and select Visual Explain

If you need more help point the dump_plan_cache to brand new library,
create a SAVF and I'll try to help

Good luck

Diego K



El 11/04/18 a las 15:10, Smith, Mike escribió:

No,

I'll be honest, I'm don't know how to do that.

Maybe that would be helpful.

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> On Behalf Of Diego
Kesselman
Sent: Wednesday, April 11, 2018 4:09 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: sql differences between batch,

Mike,

have you tried to take a Plan Cache Snapshot? You can get some useful
information from there


El 11/04/18 a las 15:00, Smith, Mike escribió:

No, but both appear to have same level of authority.

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> On Behalf Of Diego
Kesselman
Sent: Wednesday, April 11, 2018 3:40 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: sql differences between batch,

Both using the same user?

El mié., 11 de abr. de 2018 14:34, Smith, Mike <
Mike_Smith@xxxxxxxxxxxxxxxx>
escribió:

I'm going to start with the simple question depending on the results,

I may have a more detailed question.

I have a SQLRPGLE program that runs every night in batch. The
results
of
which are not the same as when I pull the sql statement out and run it
interactively.
Interactively I get the correct results, in batch, I get records it
should be be picking up.

Is there any logical explanation for me to research as to why this
might happen?

Mike
NOTICE: This message, including any attachment, is intended as a
confidential and privileged communication. If you have received this
message in error, or are not the named recipient(s), please
immediately notify the sender and delete this message.
--
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

--

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/m
idrange-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
NOTICE: This message, including any attachment, is intended as a
confidential and privileged communication. If you have received this
message in error, or are not the named recipient(s), please immediately
notify the sender and delete this message.

--
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
NOTICE: This message, including any attachment, is intended as a
confidential and privileged communication. If you have received this
message in error, or are not the named recipient(s), please immediately
notify the sender and delete this message.

--
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




--
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.

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.