ENDWHILE



ENDWHILE

     Terminates a WHILE block.

SYNTAX

     ENDWHILE


PARAMETERS

     None.


OPERATION

     This command terminates a conditional block that begins with
     a WHILE command.  The WHILE and ENDWHILE commands
     constitute a WHILE block. The WHILE command evaluates an
     expression, and so long as that expression evaluates as
     true, the command(s) between WHILE and ENDWHILE are
     executed. If the expression evaluates as false, execution of
     the WHILE block ceases and execution passes to the command
     following ENDWHILE.  Execution terminates if any command
     not protected by a preceding CONTINUE causes an error.

     This command may be issued from a session, job, or in BREAK, or
     from a program.  Pressing [Break] terminates the WHILE command
     loop.


EXAMPLE(S)

     Refer to the WHILE command.

ADDITIONAL INFORMATION

Commands:   WHILE