|
EGads... It's late... let me re-phrase my example Dou Not %Error; SetLL Acct# Rmemo; If not %Equal(Mmemo); out.seq=1; Else; SetGT Acct# Rmemo; If %Found(Mmemo); ReadPE Acct# Rmemo; out.seq=seq+1; Else; // <------This means you are at the end of the file SetLL Acct# Rmemo; ReadE Acct# Rmemo; Dow Not %EOF(Mmemo); ReadE Acct# Rmemo; EndDo; out.seq=seq+1; EndIf; EndIf; Write(E) OutMemo out; EndDo; This is the way I dreamed up on the drive home tonight. Either way would work, but the complexity is worth the speed, because this is an interactive job that creates thousands of these records each run.
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.