DO-END

The DO-END command sequence is used in conjunction with the IF-THEN-ELSE sequence to conditionally process several commands.

Parameters

The DO-END command sequence has no parameters.

Comments

The DO command specifies that the group of commands that follow is to be treated as a single unit, that is, to be executed as a result of a single IF command. The set of commands is terminated by END. A command following a DO must begin on a new line.

The END command specifies the end of a set of commands initiated by the nearest unended DO. END must be on a line by itself.

Note: Continuation characters should not be used in the DO-END sequence; they may be taken as a null command or cause unpredictable results.