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
 
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: 4650
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: 2086
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: 2086
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
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

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