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
 

 

Need a loop coded in REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
svo

New User


Joined: 11 Aug 2006
Posts: 2
Location: Munich

PostPosted: Mon Oct 02, 2006 6:39 pm    Post subject: Need a loop coded in REXX
Reply with quote

Hello together,

I know, the following seems to be stupid. But I need it for tests. Perhaps someone can help me.

I never had anything to do with REXX coding.

My problem is, that I need a loop coded in REXX. Surely for an programmer this is the easiest thing you can built, but if you don't have any know how it's horrible.

Perhaps anybody has something like that written and can post it.

Would be great.

Sascha
Back to top
View user's profile Send private message

Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Mon Oct 02, 2006 7:03 pm    Post subject: Re: Need a loop
Reply with quote

Do 5
Say "Hello"
End

Do Forever
"EXECIO 1 DISKR in"
If rc <> 0 Then Leave
Parse Pull inrec
End

cntr = 0
Do While cntr <= 1
Say "Hello "cntr
cntr = cntr + 1
End

cntr = 0
Do Until cntr > 0
Say "Hello "cntr
cntr = cntr + 1
End

Do cntr = 1 To 10
Say "Hello "cntr
End
Back to top
View user's profile Send private message
svo

New User


Joined: 11 Aug 2006
Posts: 2
Location: Munich

PostPosted: Mon Oct 02, 2006 7:44 pm    Post subject: Re: Need a loop
Reply with quote

At the Topic there will be a /* REXX */ sis this correct?

How can I start this PROG.?
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Mon Oct 02, 2006 8:29 pm    Post subject: Re: Need a loop
Reply with quote

svo wrote:
At the Topic there will be a /* REXX */ sis this correct?

Thought it's not always required, it's usually a good practice to include the identifier.

svo wrote:
How can I start this PROG.?

CLIST's and REXX exec's are usually invoked by their member name, or by a TSO EXEC command, but I don't know enough about your environment to really answer your question.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Oct 03, 2006 11:01 am    Post subject:
Reply with quote

This is not just a good practice, you have to code the /* REXX */ comment, as you can see in the fine manual.

O.
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
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am


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