Why don't you just use the INSPECT command in COBOL? You can set up any number
of counters or pattern matching strings, I do this all the time, for example;
INSPECT STRIP-BUFF TALLYING S1 FOR ALL " USING "
S2 FOR ALL ":"
S3 FOR ALL ";"
S4 FOR ALL "#INCLUDE".
shawn
______________________________ Reply Separator _________________________________
Subject: Pattern Matching Routine(s)
Author: [log in to unmask] at Internet-Mail
Date: 4/6/98 4:19 AM
Hi.
Does anyone have any pattern matching routines? I'm looking for something
that I can call
from COBOL that will do a pattern match (ie wildcarding or regexp) on
variable length
strings. ie..
CALL "PMATCH" USING A-STRING, A-STRING-LEN, A-PATTERN, A-PATTERN-LEN GIVING
DID-IT-MATCH.
or something like that... I'm looking for a binary OBJECT file with source
code. I've got the gnu C++ compiler on
the HP3000 but have no (real) experience of C
Thanks in advance.
Mark Wilkinson.
Sony Pictures Entertainment.