LABEL

LABEL statement serves as a marker for the GOTO statement, and marks the statement to be executed after 4GL passes control to it from the corresponding GOTO statement.Label-name

Label-name

The name of a label

The LABEL statement indicates the place to which the program control will be passed after the corresponding GOTO statement is executed. The GOTO and the LABEL statement must be in the same program block.

 

There are some restrictions applied to the LABEL statement:

 

The label-name must be followed by the column symbol (:) unlike the GOTO statement where the column symbol is optional.

WHENEVER ERROR GOTO first_error

...

LABEL first_error:

ERROR "Incorrect format"

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.