On Sun, Apr 6, 2008 at 8:57 AM, Paul Gilmartin <[EMAIL PROTECTED]> wrote: > On Fri, 4 Apr 2008 17:58:36 -0400, Farley, Peter x23353 wrote: > > >I have been looking around, but there doesn't seem to be an Enterprise > >COBOL equivalent of the INDEX() or POS() string function anywhere > > > > >TIA for any info/url/RTFM you can provide. > > > Boyer-Moore? > > Linkname: Boyer-Moore string search algorithm - Wikipedia, the free > encyclopedia > URL: > http://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string_search_algorithm > > ... or is that too PFCSK for a COBOL programmer? > > -- gil > No, that is too much *work* for a COBOL programmer when the COBOL compiler provides a perfectly reasonable way to achieve the result. :-)
Besides, for all I know the INSPECT verb may use Boyer-Moore under the covers. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html