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!