STMT

The STMT option specifies that statements in the source program are to be counted and that this statement number is used to identify statements in the compiler listings resulting from the AGGREGATE, ATTRIBUTES, SOURCE, and XREF options.

Read syntax diagramSkip visual syntax diagram
   .-NOSTMT-.   
>>-+-STMT---+--------------------------------------------------><

The default is NOSTMT.

When the STMT option is specified, the source and message listings include both the logical statement numbers and the source file numbers.

Note that the GOSTMT option does not exist. The only option that produces information at run time identifying where an error has occurred is the GONUMBER option. When the GONUMBER option is used, the term statement in the runtime error messages refers to line numbers as used by the NUMBER compiler option even if the STMT option is in effect.

NUMBER and STMT are mutually exclusive and specifying one will negate the other.