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
 
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
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm

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