|
I read something many releases of OS/400 ago that, if a query is using a logical file and is likely to select a large percentage (can't remember the exact figure) of the file contents, then the system tends to disregard the logical file access path. regards James O'Sullivan Senior Technical Consultant email: josulli4@xxxxxxx Office: +44 1252 536681 Fax: +44 1252 534022 www: www.csc.com Based at: Tower 2, Floor 2, Royal Pavilion, Wellesley Road, Aldershot, Hampshire, GU11 1PZ CSC Corporation Limited: No. 1812179. All registered office addresses: Royal Pavilion, Wellesley Road, Aldershot, Hampshire, GU11 1PZ. Registered in England. ________________________________________________________________________________________ This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. ________________________________________________________________________________________ "Greg Wenzloff" <GWenzloff@beckmf g.com> To Sent by: <midrange-l@xxxxxxxxxxxx> midrange-l-bounce cc s@xxxxxxxxxxxx Subject Logical file and query question 16/08/2005 14:14 Please respond to Midrange Systems Technical Discussion <midrange-l@midra nge.com> I created a logical file over a rather large physical file to help speed up a long running program. I'd like to look at the data retrieved by the logical file so I can get ready to test the changed program. When I do RUNQRY *N FILENAME the system returns "Query running. Creating a copy of file FILENAME in LIBNAME". This grinds away for a long long time and I have to kill my session. >From Google I find that this message comes from OPNQRYF. The question is what's going on here? If there is an access path created by the CRTLF command why doesn't it just display the data? Other logical files instantly display records. The DDS for the LF does contain select and omit directives. Is that any significance? I don't think the program will run quicker if the operating system is going to build its own path to the data. Here is the DDS ...A..........T.Name++++++.Len++TDpB......Functions+++++++++++++++ A R IMHISTR PFILE(IMHIST) A* A CONO A TCODE A ITNBR A HOUSE A TRNDT A TRQTY A* A K ITNBR A K TRNDT A* A S TCODE COMP(EQ 'SA') A S TCODE COMP(EQ 'IS') A O CONO COMP(EQ 9) A O TRQTY COMP(EQ 0) A O ALL TIA, Greg -- 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.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.