In a REXX
tool, I want to check if the PS file contains a specific pattern (like continuous 16 digits) in mainframe
, for which I want to execute a Regular expression and then check the RC for further processing.
I tried below code, but not able to execute the regular expression.
/* REXX */
STRIGN = "rc'[0-9]{16}'"
ADDRESS ISPEXEC "VIEW DATASET('XXXX.XXXXX.XXXXX')"
ADDRESS ISREDIT "MACRO (STRING)"
"F" STRING
SAY RC
For the code I am getting error for line
"F" STRING' 'IKJ56500I COMMAND F NOT FOUND' and RC = '-3'.
Could anyone please suggest any way to execute a regular expression using REXX
in mainframe
.