End command

END is used to specify the end of the main command section prior to any routines or the end of a routine. If used at the end of a routine then during execution event processing will pass to the command following the point from where the routine was called after the routine has been executed.

Example

*COMMANDS
    ...
END
    ...

Example

*COMMANDS
    ...
END
ROUTINE
    ...
END
ROUTINE
    ...
END
    ...