Implement a DO – ENDDO Loop
Implement a DO – ENDDO Loop
Explanation Screenshot
Using the DO . .
ENDDO keywords
users may wish to
create a Loop with a
specified number of
Loops.
1. Choose
H01_EN_1 > Favorite
Packages > ZLOCAL.
1
Implement a DO – ENDDO Loop
Explanation Screenshot
2. Choose the
ZS4D100_01 (7) ZSD
100_01 Package with
the right-click.
2
Implement a DO – ENDDO Loop
Explanation Screenshot
5. In the
Description field,
enter DO ENDDO.
6. Choose Add.
7. Choose OK.
3
Implement a DO – ENDDO Loop
Explanation Screenshot
8. Choose Next.
9. Choose
H01K900010.
4
Implement a DO – ENDDO Loop
Explanation Screenshot
************************
************************
********
* Example 1:
DO...ENDDO with
TIMES
************************
************************
********
CONSTANTS:
c_number0 TYPE i
VALUE 3.
out->write( '-------------
-------------------' ).
out->write( 'Example
1: DO...ENDDO with
TIMES' ).
out->write( '-------------
-------------------' ).
5
Implement a DO – ENDDO Loop
Explanation Screenshot
DO c_number0
TIMES.
out->write( 'Hello
World' ).
ENDDO.
6
Implement a DO – ENDDO Loop
Explanation Screenshot
You have
successfully
implemented a DO-
ENDDO Loop.