|
We did open and run on line: Worked. Then we submitted to batch: Worked. Then ran it again in it's native CLP: Failed. Ran the CLP on line: Failed. Ran the query in a tiny PGM, RUNQRY, ENDPGM CLP: Failed. Added additional 'simple' select criteria to omit the records with no date: Runs everywhere.
Generally you need to open the query in change mode and then save it. No changes need to be made. This updates the query optimizer setting for the query and the new OS. Believe it or not it works for most query problems after upgrading the OS or changing the files from 4G to 1T. That is why when you run interactively from the work query screen, option 2, and press F5 it works cause it builds new optimization before running where as the runqry does not update the optimization table so the query basically is not optimized. I have had horrid queries that I run in debug, followed the recommendations by building the access paths and saw so change until I opened and saved the query.
-- Larry Bolhuis | IBM eServer Certified Systems Expert Vice President | iSeries Technical Solutions V5R2, V5R1, V4R5... Arbor Solutions, Inc. | iSeries LPAR Technical Solutions V5R2 (616) 451-2500 | e-business for AS/400 V4R2 (616) 451-2571 -fax | IBM eServer Certified Systems Specialist lbolhuis@xxxxxxxxxx | iSeries System Administrator for OS/400 V5R2 www.arbsol.com | RPG IV Developer | iSeries System Command Operations V5R2 | Client Access
--- [This E-mail scanned for viruses by Declude Virus]
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.