RUN Verb - BBj

For this topic's original documentation, see RUN Verb - Run Program.

BBj-Specific Information

Syntax

RUN {fileid::label}{,ERR=lineref}}

Description

The RUN verb either runs the current program or the fileid-specified program.

Parameter

Description

fileid

Program to be located, opened, loaded, and executed in the workspace, performing the appropriate checks and resets. If the optional ::label is not specified, execution begins at the first line of the program.

If this parameter is not included, execution of the current program continues at the previous point, unless the continuation point was changed by a GOTO command while in console mode. Using RUN without a fileid is permitted in console mode only and places BBj in run mode.

label In BBj 26.01 and higher, the fileid parameter can include an embedded label reference, preceded by two colons (::), to specify the location for starting execution in the new program. If the specified label does not exist, BBj will issue an !ERROR=21 in the new program.

ERR=lineref

Branch to be taken if an error occurs during execution.

Examples

1000 RUN "TEST.BBX"
>RUN

See Also

Data Server Syntax

Verbs - Alphabetical Listing