Parameters
Parameter | Data Type | Description |
---|---|---|
Label | String | Label of a statement in the current ProcScript module |
Return Values
None
Use
Allowed in all component types.
Description
The goto statement continues execution within the current ProcScript module, beginning at the statement identified by Label. For a more structured approach to programming, use the while or repeat statements.
goto ProcScript Label
The following example deletes the first 1001 records, then exits the current component. This is typically used when a component is defined for transaction processing.
operation exec $1 = 0 retrieve start: ; the label ends with a colon (:) if ($1 = 1001) store exit else remocc $1 = $1 + 1 endif goto start ; but no colon is used in the goto line end; exec