MSCEWI2071

GOTO statement was replaced with the label section with the same name

triangle-exclamation

Severity

Medium

Description

The GOTO statement indicates to the BTEQ interpreter to skip all the statements until it find a LABEL statement with the same name. To replicate this functionality the GOTO statement is replaced with the LABEL section.

Example Code

Input Code:

.LOGON dbc,dbc;
select 1;
.IF activitycount >= 1 then .GOTO SECTIONB
.REMARK 'REMARK1'
.label SECTIONB
.REMARK 'REMARK2'
.logoff      
.exit

Output Code

Recommendations

Last updated