I have a REXX Code where there is the following INTERPRET instruction:
parse upper var cond 'IF ' cc test val .
if (cc = "MAXCC" | cc = "LASTCC"),
& (test = ">" | test = "<" | test = "=",
| test = "/=" | test = "<=" | test = ">="),
& datatype(val) = "NUM" Then Do
interpret "if" cc test val "Then OK='y'; Else OK='n'"
if OK = 'n' Then Do
if Batch = 'True' Then say "Bypassing:" PARMS_rec.I
I added the SAY instructions to check the values that I am sending. Based on the input, the value of OK should be 'Y'. But for some reason the INTERPRET instruction doesnt seem to be working. Can anyone see anything wrong with this instruction?