&GOTO STATEMENT EXEC statement Use the &GOTO control statement to transfer control to a specific location in the EXEC procedure. Execution then continues at the location that is branched to. The format of the &GOTO control statement is: +-----------+-----------------------------------------------------------------+ | &GOTO | TOP|line number|-label | +-----------+-----------------------------------------------------------------+ where: TOP transfers control to the first line of the EXEC file. line number transfers control to a specific line in the EXEC file. -label transfers control to a specific label in the EXEC file. A label must begin with dash (-), and it must be the first token on a line. The remainder of the line may contain an executable statement or it may be null. Note that labels are case-sensitive. Usage Notes: 1. Scanning for an EXEC label starts on the line following the &GOTO statement, goes to the end of the file, then to the top of the file, and (if unsuccessful) ends on the line above the &GOTO statement. If more than one statement in the file has the same label, the first one encountered by these rules satisfies the search. 2. To provide a branch up or down a specific number of lines in the EXEC, use the &SKIP control statement.