View previous topic :: View next topic
|
Author |
Message |
svo
New User
Joined: 11 Aug 2006 Posts: 2 Location: Munich
|
|
|
|
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 |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
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 |
|
|
svo
New User
Joined: 11 Aug 2006 Posts: 2 Location: Munich
|
|
|
|
At the Topic there will be a /* REXX */ sis this correct?
How can I start this PROG.? |
|
Back to top |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
|