Open Enterprise Foundation for z/OS (OEF)

Open Enterprise Foundation for z/OS (OEF)

Open Enterprise Foundation for z/OS (OEF)

A community focused around vetted OEF open source tools available on z/OS to foster a collaborative environment for the community to learn, share tips, and discuss possibilities.

 View Only
  • 1.  Looking for Help with COBOL REGCOMP / REGEXEC Usage

    Posted 06/05/26 10:48 AM

    Hello IBM Community, I’m trying to understand how to effectively use theREGCOMP and REGEXEC functions in COBOL. I’ve read the documentation and invoked some code recommended by AI. I'm using the built-in C++ functions in CEE.SCEELKED.

    I got past the S0C4 crashes, but I still don't get the results I expect. REGCOMP appears to work successfully, but the REGEXEC Result value returns a 1 (not matched) whether the string matches or not.

    If anyone has experience with REGCOMP and REGEXEC in COBOL or can point me to useful resources or examples, I would greatly appreciate your insights. Thank you in advance for any help you can provide!



  • 2.  RE: Looking for Help with COBOL REGCOMP / REGEXEC Usage

    Posted 06/08/26 08:28 AM

    Hi Douglas, this community is for Open Enterprise Foundation for z/OS - https://www.ibm.com/products/open-enterprise-foundation-zos

    But I see that you found the right community in https://community.ibm.com/community/user/question/using-enterprise-cobol-to-call-c-regcomp-regex-functions. If you need help in getting a subject matter expert to help answer you question, let me know!



    ------------------------------
    Igor Todorovski
    ------------------------------