× 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: RE: Problems with a date field as a key in RPG/LE
  • From: Joe Teff <jteff19@xxxxxxx>
  • Date: Sat, 4 Apr 1998 15:16:21 -0600

I am setting lower limits using Customer #, Item # and Beginning Date (KLDL9)
and then reading equal with Customer # and Item # (KLDL92). This should
allow me to read all of the Invoice Detail for a Customer and Item with Dates
on or after the Beginning Date. Using KLDL92 to set lower limits would start me
at the first Invoice Detail for the Customer and Item. That is essentially what 
it's
doing know even though I tell it to use the Date as well.

> Joe, I wonder why you SetLL with the Kfld KLD9 and not KLDL92?  Wouldn't
> KLD92 take you right straight to the record you want?  From a performance
> point of view, that'd be a huge boost during the year; I'd suspect more or
> less first day performance through the entire year.

> I am not really good with ReadE but will it ever enter the DoW loop if the
> first record read after the SetLL is NotEQ?

>>     C           *ISO               Move      EndDat           EndDte
>>-------------- 2 data records excluded----------------------------
>>     C           KLDL9            Klist
>>     C                                  KFld                             
>CCUST# 
>>     C                                  KFld                             WITEM
>>     C                                  KFld                             
>BgnDte
>>     C*
>>     C           KLDL92          Klist
>>     C                                  KFld                             
>CCUST#
>>     C                                  KFld                             
>WITEM 
>>-------------- 136 data records excluded------------------------------
>>     C           KLDL9           SetLL    SLHSTDL9
>>     C           KLDL92          ReadE    SLHSTDL9                            
> 25
>>     C                           DoW      Not *IN25
>>-------------- 162 data records excluded-------------------------------
>>     C           KLDL92          ReadE    SLHSTDL9                            
> 25
>>     C                           EndDo
>>-------------- 150 data records excluded-----------------------------

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@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.