Skip to content

RUN

FUNCTION

This command executes a program or script.

SYNTAX

RUN "program-name"
[ERROR PROCESS IS procedure]
RUN "script-name"
[ERROR PROCESS IS procedure]
RUN OVERLAY "script-name"
[ERROR PROCESS IS procedure]
RUN PUBLIC "script-name" [, value/name [, value/name] ...]
[ERROR PROCESS IS procedure]
program-name
a string data name, variable, constant, or expression that specifies the name of a Basic program.
script-name
a string data name, variable, constant, or expression that specifies the name of a script defined in Dictionary-IV.
procedure
the name of a procedure to perform.
value/name
a data name, variable, constant, expression, or definition name from Dictionary-IV.

NOTES

RUN "program-name"
  • The RUN “program-name” command provides an interface to 3GL programs written in Thoroughbred Basic by executing a standard program written in Thoroughbred Basic.
RUN "script-name"
  • The RUN “script-name” command executes a primary or continuation script. When the primary or continuation script is terminated, execution returns to the last Dictionary-IV menu.
RUN OVERLAY
  • RUN OVERLAY executes an overlay script. When the overlay script is terminated, execution returns to the invoking script at the command following the RUN OVERLAY.
RUN PUBLIC
  • RUN PUBLIC executes a public script and can pass and receive values.
  • If a value or name list is specified for the RUN PUBLIC command, there must be a corresponding ENTER PUBLIC command in the public script, and the value or name list in both scripts must agree in type.
  • When the public script is terminated, execution returns to the invoking script at the command following the RUN PUBLIC.

EXAMPLES

RUN "4STEST"
ERROR PROCESS IS ERROR-PROC
RUN OVERLAY "4SSAMPL3"

SEE ALSO

CALL, ENTER PUBLIC, section on Different Types of Scripts in the Script-IV Developer Guide, Thoroughbred Basic Language Reference

From the Script-IV Language Reference, version 8.9.1. Open this page in the PDF