ENDDO (End Do)
Purpose
The End Do (ENDDO) command is used with the DO command to identify a group of commands that are run together as a group. The ENDDO command specifies the end of the Do group that is started with an associated DO command. The ENDDO command must be specified after the last command in the Do group.
When Do groups are nested, each group must have its own ENDDO command at its end. Every ENDDO command must be associated with a DO command; if too many ENDDO commands occur in the CL program source, a message is issued and the program is not created.
Restriction: This command is valid only within a CL program.
There are no parameters for this command.
See the examples for the DO and IF commands.
Error messages for ENDDO