It depends. Once a logical is built, you don't have the same overhead to create the access path as you would with OPNQRYF. Dynamic Select affects this, but it's been awhile since I've dealt with that. If this is used "often", it's probably best to define a logical. If rarely used, like once monthly, just keep using the OPNQRYF. If used in a lot of applications, even if rarely, probably easier maintenance to define a logical. YMMV. db > -----Original Message----- > From: midrange-l-bounces@xxxxxxxxxxxx / Dwayne Allison > Sent: Wednesday, October 06, 2004 11:31 AM > > We are using the following command: > > OVRDBF FILE(PA0PBR) TOFILE(PASPBR) SHARE(*YES) > OPNQRYF FILE((PASPBR)) QRYSLT('ARBGRP *EQ "*C*"') > > Is it quicker to create a logical file with a select ARBGRP that > equal *C only or use the above query?
This mailing list archive is Copyright 1997-2015 by MIDRANGE dot 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 here. If you have questions about this, please contact