Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Interpret instruction not working in REXX Code

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
spoorni

New User


Joined: 29 Nov 2007
Posts: 20
Location: india

PostPosted: Fri Feb 07, 2014 10:22 pm    Post subject: Interpret instruction not working in REXX Code
Reply with quote

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
View user's profile Send private message

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1783
Location: Bloomington, IL

PostPosted: Fri Feb 07, 2014 11:47 pm    Post subject:
Reply with quote

Works for me.
Back to top
View user's profile Send private message
TheMFKid

New User


Joined: 20 Nov 2013
Posts: 91
Location: India

PostPosted: Mon Feb 10, 2014 9:39 am    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Finding the plan when code compiled u... Ahemad DB2 1 Fri Dec 01, 2017 6:38 pm
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Control-M restart instruction sonaliingle CA Products 2 Tue Nov 28, 2017 5:05 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us