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.


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

This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page