View previous topic :: View next topic
|
Author |
Message |
spoorni
New User
Joined: 29 Nov 2007 Posts: 20 Location: india
|
|
|
|
I have a REXX Code where there is the following INTERPRET instruction:
Code: |
parse upper var cond 'IF ' cc test val .
if (cc = "MAXCC" | cc = "LASTCC"),
& (test = ">" | test = "<" | test = "=",
| test = "/=" | test = "<=" | test = ">="),
& datatype(val) = "NUM" Then Do
say cc
say test
say val
interpret "if" cc test val "Then OK='y'; Else OK='n'"
say OK
if OK = 'n' Then Do
if Batch = 'True' Then say "Bypassing:" PARMS_rec.I
Iterate I
End
End
|
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?
Code'd |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Works for me. |
|
Back to top |
|
|
TheMFKid
New User
Joined: 20 Nov 2013 Posts: 91 Location: India
|
|
|
|
Your INTERPRET statement is working perfectly for me. I think the issue maynot be related to INTERPRET instruction. I would suggest you use TRACE to track down the error. |
|
Back to top |
|
|
|