View previous topic :: View next topic
|
Author |
Message |
raghavmcs
Active User
Joined: 14 Jul 2005 Posts: 105
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
No, not that I'm aware of. |
|
Back to top |
|
|
raghavmcs
Active User
Joined: 14 Jul 2005 Posts: 105
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
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 |
|
|
raghavmcs
Active User
Joined: 14 Jul 2005 Posts: 105
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
Glad I could help.
Thanks for your well wishes. |
|
Back to top |
|
|
|