× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: OPNQRYF access path rebuilds & OPTIMIZATION ??
  • From: Prabhu.Chella@xxxxxxxx
  • Date: Mon, 26 Oct 1998 10:49:51 -0700



I have a logical something like this  ..
0004.00        A          K DDNT

0005.00        A          K ACCTNO

0006.00        A          S DDNT                      VALUES(0 100 200)


And i use the OPNQRYF this way for selecting only 0, 100  DDNT records
                                             ........ Ovrride with
Share(*Yes) ...
0004.00                OPNQRYF    FILE((FLPHPA)) OPTION(*ALL) +
0005.00                             QRYSLT('DDNT = 0  *or DDNT = 200') +

0006.00                             KEYFLD(*FILE) SEQONLY(*NO) +

0007.00                             OPNSCOPE(*ACTGRPDFN)
ALWCPYDTA(*OPTIMIZE) +
0007.01                             OPTIMIZE(*FIRSTIO)
                                           ............. CALL RPG1

1 ) In this case can i be sure that it would not rebuild the access path
every time i call the program ?.
2)  And in case i remove the Selects in Logical will OPNQ build the acess
path every time ?

3) And is this a effective method for random file processing( First a
screen full of records are shown , then  depending on the
Position to Values entered , the screen is redisplayed , or if a selection
is made from the records on the screen, you shift to
update the record).

Generally it will be more than 20% of the records selected and the number
of records will be more than 30,000.

Your guidance will be very helpful ...
Thanks in advance,
Chellaprabhu.







+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.