Description: Jumps to a labeled tag in the program.
Legacy RPG400 Example:
C GOTO Label
C Label TAG
C Label TAG
Modern RPGLE Example:
To use GOTO in IBM RPGLE within a free format, you cannot directly use GOTO tags. Instead, you can use logical expressions to emulate GOTO functionality. Here are some key points:
GOTO is not available in free format; you can use logical conditions instead.
If somecondition = something;
dosomething;
endif;
