IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Thru like syntax in REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
raghavmcs

Active User


Joined: 14 Jul 2005
Posts: 105

PostPosted: Sat Dec 27, 2008 12:30 am
Reply with quote

Dear Experts,

Do we have thru like syntax in REXX.
IN cobol we have 1 thru 9 like syntax.Do we have anything like this in REXX also.
I seacrhed on google and on this forum but nothing relevent I got.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Dec 27, 2008 12:43 am
Reply with quote

No, not that I'm aware of.
Back to top
View user's profile Send private message
raghavmcs

Active User


Joined: 14 Jul 2005
Posts: 105

PostPosted: Sat Dec 27, 2008 1:12 am
Reply with quote

SuperK,
Just making more clear
I want to put check on my REXX program so that it can behave differently based on the range of values being returned
Like If num1 in range 1 thru 9
then do processing
if num1 in range 10 thru 20
then do different processing.

I want num1 to control the basic flow then based on the value of num1 the program should behave differently
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Sat Dec 27, 2008 1:35 am
Reply with quote

Code:
Select
When ((num1 >0 ) & (num1 <10 )) then
  Call some_routine1
When ((num1 > 9) & (num1 < 21)) Then
  Call some_other_routine
Otherwise
  Nop
End
Back to top
View user's profile Send private message
raghavmcs

Active User


Joined: 14 Jul 2005
Posts: 105

PostPosted: Wed Dec 31, 2008 3:01 am
Reply with quote

Thanks Pedro with your solution I was able to do what I was trying to do.
Wishing you one and all a very happy new year 2009
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Wed Dec 31, 2008 6:46 am
Reply with quote

Glad I could help.

Thanks for your well wishes.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top