MSCEWI2072
LABEL not found, GOTO statement was replaced with return statement
This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.
Severity
Low
Description
The GOTO statement indicates to the BTEQ interpreter to skip all the statements until it find a LABEL statement with the same name. So if that LABEL statement are not in the code or the interpreter can't find it, all the statements below that GOTO will be skipped. To replicate this functionality the GOTO statement without the corresponding LABEL is replaced with a Snowflake return with code 1.
Example Code
Input Code:
Output Code
Recommendations
Remove the GOTO statement if their LABEL is not in the code or add the corresponding LABEL somewhere below the GOTO statement.
If you need more support, you can email us at snowconvert-support@snowflake.com
Last updated