Labels

The way to refer to a labeled statement is to use its statement label. For any language in which statement labels are numbers, such as Pascal or FORTRAN, a percent character (%) must be used in front of the statement label. For example, in the following Pascal code

325:
326: 9999: writeln('ERROR: INVALID DATA.');
327: end. {Program Terminates}

the statement references 326 and %9999 both refer to the writeln statement.

In the following PL/I code:

 9:  DUMMY
10:  %INCLUDE 'MYFILE.PL1';/*PL/I sample */
11:  CHKPAGE:
12:  if I = 66 then 
13:        do; put skip; I = 0; goto DONEIT;
14:  end;
15:  I = I + 1; DONEIT: J = 0; K = 0;
16:  L = 0;

the CodeWatch commands B 11 and B CHKPAGE are equivalent, and both refer to statement number 11.