HP3000-L Archives

April 1998, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Shawn Gordon <[log in to unmask]>
Reply To:
Date:
Mon, 6 Apr 1998 06:52:00 -0700
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (37 lines)
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.

ATOM RSS1 RSS2