Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Thru like syntax in REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Thru like syntax in REXX
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

Moderator Team Head


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

PostPosted: Sat Dec 27, 2008 12:43 am    Post subject: Reply to: Thru like syntax in REXX
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    Post subject: Reply to: Thru like syntax in REXX
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

Senior Member


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

PostPosted: Sat Dec 27, 2008 1:35 am    Post subject: Reply to: Thru like syntax in REXX
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    Post subject: Reply to: Thru like syntax in REXX
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

Senior Member


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

PostPosted: Wed Dec 31, 2008 6:46 am    Post subject: Reply to: Thru like syntax in REXX
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    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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us