EQUEL Statements that Generate Labels
As mentioned, some EQUEL statements generate labels. These are the retrieve statement and all the EQUEL/FORMS block-type statements. Each of these statements reserves its own range of 200 labels in an overall range for such statements of 7000 through 12000. Consequently, you cannot have more than 200 of any single label-generating statement in the same program unit. For example, 201 display statements in a single subroutine will cause a compiler error indicating that a particular label has been used more than once. You could, however, have 200 display statements and 200 unloadtable statements without causing a problem.