&SYSSTMT System Variable Symbol

Use &SYSSTMT to obtain the next statement number that is assigned to a statement by the assembler. &SYSSTMT has a global scope.

The value assigned to &SYSSTMT is an 8-character string, padded on the left with leading zero (X'F0') characters. The following example shows the value assigned to &SYSSTMT. It assumes that the DC statement is in open code, and is the 23rd statement in the source module.
23          DC    C'&SYSSTMT'
  +         DC    C'00000024'
Notes:
  1. The value of the type attribute of &SYSSTMT (T'&SYSSTMT) is always N.
  2. The value of the count attribute of &SYSSTMT (K'&SYSSTMT) is always 8.