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: 2025
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: 2025
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. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


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