|
I just tried something like this - there is no sharing of access path.
Vern,AND an index for the SQL statement to run with the SQE. But there are RPG's
I need the select/omit. I think the LF would have to be replaced by a view
De la part de Vern Hamberg
David FOXWELL
Service Informatique
Tél : 03 90 23 91 63
david.foxwell@xxxxxxxxx
P*Pensez à l'environnement avant d'imprimer ce message
-----Message d'origine-----
De : rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
Envoyé : lundi 13 octobre 2008 21:11DDL - it does not matter. Make it have the same keys as your select/omit
À : RPG programming on the AS400 / iSeries
Objet : Re: SQL versus READ for sequential processing
David
I think the solution is to add an LF (index) - you can create with DDS or
Birgitta gave you.
You should almost NEVER use LFs in a SELECT statement, for all the reasons
based on it that use omit. The cure would be to stop using DDS, I suppose?
HTH
Vern
David FOXWELL wrote:
Thanks Birgitta,
So there's no point in me taking the LF out of my request.
The PF indexed by the LF has 1 000 000 records at present. There are 6 LF
/ iSeries'
-----Message d'origine-----
De : rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de Birgitta Hauser
Envoyé : vendredi 10 octobre 2008 18:39 À : 'RPG programming on the AS400
queries where DDS described logical files are specified will be rerouted toObjet : AW: SQL versus READ for sequential processing
Hi,
logicals?Birgitta, are you saying that some of these won't work with
DDS-defined
No I said, those enhancements cannot be executed by the CQE and all
only specify the physical files in your SQL statements and as long as there
The SQE can also be used with DDS described logical files, as long as you
rerouted to the CQE, too.If there are logical files with select/omit clauses the query will be
*YES and use this QAQQINI file in your job with the cl Command CHGQRYA:If you set the IGNORE_DERIVED_INDEX option in a copied QAQQINI file to
clauses. But the query optimizer will ignore all access paths stored inCHGQRYA QRYOPTLIB(MYLIB
Now the SQE can be used even if there are logical files with select/omit
instead of using an index a table scan will be performed (because theIn this way you may end up by executing the query with the SQE but
is worse than training your staff and losing them? Not training them and
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars."
(Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok) "What
oder?
-----Ursprüngliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] Im Auftrag von Joe Pluta
Gesendet: Friday, 10. October 2008 12:49
An: RPG programming on the AS400 / iSeries
Betreff: Re: SQL versus READ for sequential processing
David FOXWELL wrote:
Have you an example of enhancements of SQE that cannot be used incase? I don't think you mean that certain SQL commands wouldn't execute,
this
things like ROLLUP and/or full outer joins. Birgitta, are you saying that
That's a good question, David. I'm assuming Birgitta is talking about
To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or--
Joe
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
visit: http://lists.midrange.com/mailman/listinfo/rpg400-lhttp://archive.midrange.com/rpg400-l.
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
As an Amazon Associate we earn from qualifying purchases.
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.