|
If you were on V5R4, it sounds like something recursive SQL could
perform. Given that you must compare one value in sequence to the
next (or previous depending on the algorithm) I don't know a
quick way other than reading the sequence in order. With the
proper indexes, runtime should be blazing fast.
On Wed, Jun 24, 2009 at 10:26 AM, James H. H. Lampert wrote:
Given a key sequence in a file, really just a series of
numbers, does anybody know of an algorithm, other than brute
force, for finding gaps in the sequence?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.