On Thu, 10 Apr 2025 16:50:35 +0000, Sri Hari Kolusu wrote: > >We had this exact discussion here and a very lengthy discussion offline in >September 2022 > >https://www.mail-archive.com/ibm-main@listserv.ua.edu/msg122632.html > >Fyi.. we did implement some of your suggestions before I moved to a different >group. > Thanks. You and your predecessor were very helpful, not only with DFSORT, but with unrelated topics. We miss you.
That said, when the manual says: • Regular expression characters require code page (CCSID) IBM-1047. See Table 109 on page 833. ... a reader can reasonably assume that it means that Table 109 on page 833 describes IBM-1047, not 037. Please don't play pedantic games such as, "It only said 'see,' it didn't say that Table 109 contains IBM-1047!" Table 109 should be updated to contain IBM-1047 as the citation implies. There are various mentions of "038" in three manuals. Those could be changed to 1047, matching the change in Table 109. As for Peter's remark: IMHO no “programmer option” is needed – If you code a BRE as the RE then that’s what you’ll execute, if you code an ERE then that is what you’ll execute. ISTM that it's up to the underlying RE compiler to determine the syntax in use. Unfortunately, that's not possible. There are some RE strings which are valid as either BRE or ERE. And it's easy to code such an ambivalent RE and a pair of subject strings such that one matches that RE only if it's compiled as a BRE; the other only if it's compiled as an ERE. (sample available on request.) There must be some syntax by which the programmer can indicate to DFSORT how to tell regcomp() which form of RE the programmer intends. >-----Original Message----- >From:Paul Gilmartin >Sent: Thursday, April 10, 2025 9:01 AM > >In: SC23-6878-60 DFSORT Application Programming Guide ><https://www.ibm.com/docs/en/SSLTBW_3.1.0/pdf/icea100_v3r1.pdf > > >• Regular expression characters require code page > (CCSID) IBM-1047. See Table 109 on page 833. >But the table cited shows nog 1047 but 037. >Accuracy matters. Not all RE control characters appear in that table. > >Two versions of regular expressions are supported: >• Basic regular expressions (BRE) >• Extended regular expressions (ERE) >It fails to specify which is supported: >• (BRE)? >• (ERE)? >• Programmer's option (selected how?) -- Thanks, gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN