Branch to specified destination (S procedure)
| Component: | SDF-P-BASYS | 
| Functional area: | Procedures | 
| Domain: | PROCEDURE | 
| Privileges: | STD-PROCESSING | 
Function
GOTO is an SDF-P control flow command.
A GOTO command within an S procedure causes a branch to a specified destination. Command processing resumes with the command introduced by the specified label, which may only occur once within the relevant procedure. Only labels in SDF-P format (S labels) may be used.
Branches are only possible within the same command block or, in the case of block nesting, in a command block on a lower nesting level.
The GOTO command corresponds to the SKIP-COMMANDS command (without conditions) in a non-S procedure.
Restrictions
The command can only be used within procedures.
Format
| GOTO | 
| LABEL = <structured-name 1..255> | 
Operands
LABEL = <structured-name 1..255>
This defines the branch destination. Specification takes the form of a label in SDF-P format (S label). Command processing resumes with the command line introduced by this label. 
Return codes
| (SC2) | SC1 | Maincode | Meaning/Guaranteed messages | 
|---|---|---|---|
| 0 | CMD0001 | No error | |
| 1 | CMD0202 | Syntax error | |
| 1 | SDP0118 | Command in incorrect context | |
| 1 | SDP0223 | Incorrect environment | |
| 3 | CMD2203 | Incorrect syntax file | |
| 32 | CMD0221 | System error (internal error) | |
| 130 | SDP0099 | No further address space available |