z/OS regular expressions. https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.bpxa500/regexpa.htm
https://www.idug.org/p/bl/et/blogaid=670 https://www.pcre.org/ Pearl Compatable Regular Expression for z/OS at CBT TAPE FILE 939. On Thu, Oct 25, 2018 at 9:29 PM Paul Gilmartin <[email protected]> wrote: > > On Fri, 26 Oct 2018 13:18:31 +1100, Peter Morrison wrote: > > > >I am trying to find details on a comparison routine that can be used in > >z/OS, that allows you to compare a field against a pattern similar to the > >SQU 'LIKE' operator - where '*' matches 0 or more characters and '?' matches > >just one. > > > >I believe there is such a publicly available routine in z/OS but I cannot > >find anything. > > > >Anyone have any ideas? > > > /bin/grep > > #define _XOPEN_SOURCE > #include <fnmatch.h> > int fnmatch(const char *pattern, const char *string, int flags); > > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxbd00/rfnmtc.htm > > Otherwise, need more context. > > -- gil > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN -- Mike A Schwab, Springfield IL USA Where do Forest Rangers go to get away from it all? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
