RUN

RUN [REPEAT] [program-name [library-id]]

This command is used to compile and execute a source program or dialog. The program or dialog may be in the source work area or in the Natural system file.

See also:

RUN If program name is not specified, Natural will compile and execute the program or dialog currently residing in the work area.
REPEAT REPEAT defines that if the program or dialog being executed produces multiple screen output, the screens are to be output one after another without intervening prompting messages. When the program or dialog terminates, Natural will enter command mode.
program-name

The name of the program or dialog to be run.

If program-name is specified without a library ID, Natural will read the source program or dialog into the source work area, compile, and execute the specified program or dialog only if it is stored under the current library ID. If it is not stored under the current library ID, an error message will be issued.

library-id

The library in which the program or dialog to be run is contained.

If both program-name and library-id are specified, Natural will retrieve, compile, and execute the specified program or dialog only if it is stored under the library ID specified. If it is not stored under the current library ID, an error message will be issued.

The setting for library-id must not begin with SYS (except SYSTEM).