|
This may be worth a shot: Try creating a logical with ARBGRP as the primary KEY (no select/omit), continue using the OPNQRYF but be sure to specify OPTALLAP(*YES). If my recollection is not faulty, OPNQRYF should use the logical to do the selection by key lookup. Maybe others can confirm. hth, db > -----Original Message----- > From: midrange-l-bounces@xxxxxxxxxxxx / Dwayne Allison > Sent: Wednesday, October 06, 2004 11:56 AM > > What we have is a program that run Monday through Thursday nigh > within our cycle. This program is called twice. The first with > the OPNQRYF FILE((PASPBR)) QRYSLT('ARBGRP *EQ "*R*"') and then > with the OPNQRYF FILE((PASPBR)) QRYSLT('ARBGRP *EQ "*C*"'. We > have records that equal *R*, but none in the file that equal *C*. > I can go along with it taking a while to process the records > with an *R*. But if we have no *C*, why is it taking thirty > minutes to process. It should read the file and find no record > are there and end.
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.