LABEL


The LABEL statement defines a position in an ILF routine that may be referenced by GOTO, GOSUB, OVERFLOW, or TIMEOUT statements.

          LABEL    ••••••••••••••••••••••••••••••
                   (1)

(1) Label

Using the Statement

The LABEL statement defines a position in an ILF routine that may be referenced by a GOTO, GOSUB, OVERFLOW, or TIMEOUT statement. Each label must be unique within the event point that contains it.

Compilation Errors

A process compile error occurs if multiple labels of the same name are defined within the same event point or in any ILF subroutines copied into that event point with the COPY statement.

Related Statements

COPY, GOSUB, GOTO, OVERFLOW, TIMEOUT

Example

In the following example, “on account” payments are processed by invoice until no more payment amount is left to apply.

          LABEL    :GET NEXT APPLY TO
          *        any more to apply?
          IF       TAR WORK ON ACCOUNT AMOUNT     EQ     0

    T     GOTO     :END PROCESS ON ACCOUNT

          *        (process 'on account' payment)

          GOTO     :GET NEXT APPLY TO

          *

          LABEL    :END PROCESS ON ACCOUNT
          *        (perform other processing)