RUN

#### Search Results

Search

# RUN

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

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

`RUN` | If `program name` is not specified, Natural will compile and execute the program currently residing in the work area.
`REPEAT` | `REPEAT` defines that if the program being executed produces multiple screen output, the screens are to be output one after another without intervening prompting messages. When the program terminates, Natural will enter command mode.
`program-name` | The name of the program to be run. If `program-name` is specified without a library ID, Natural will read the source program into the source work area, compile, and execute the specified program 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 to be run is contained. If both `program-name` and `library-id` are specified, Natural will retrieve, compile, and execute the specified program 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`).