Previous Topic: Field Name QualificationNext Topic: File Names


Labels

The Reporting Facility provides the ability to attach a label to certain commands. You can conditionally or unconditionally branch to the commands.

This technique directs the program flow and determines which commands will be executed and under what circumstances they will be executed. For the Reporting Facility to recognize your intentions, you must follow certain label coding rules:

ADD
PROC
COMPUTE
CONTINUE
DECODE

DECREMENT
DIVIDE
ENDPROC
GET
GOTO

INCREMENT
MOVE
MULTIPLY
SET
SUBTRACT

Valid Labels

Invalid Labels

The following entries result in the described error conditions:

123:

First character is not A—Z.

THIS-IS-AN-INVALID-LABEL

Terminating colon is missing.

SO_THIS_IS_#1:

Special character is present.

INVALID-LABEL-SPEC-:

Last character before the colon is a dash.

START:

Predefined, reserved label.