IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need a loop coded in REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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
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
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
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: 2358
Location: Israel

PostPosted: Tue Oct 03, 2006 11:01 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top