Progress
Programming
Handbook


Standard Execution Options

The run–options of the RUN statement can include run-time parameters, compile-time arguments, and the NOERROR option for handling run-time errors. For information on the NOERROR option, see Condition Handling and Messages."

Run-time parameters include comma-separated data items enclosed in parentheses. Each data item is preceded by INPUT, OUTPUT, INPUTOUTPUT, or BUFFER, corresponding to the type of parameter defined by the DEFINE PARAMETER statement in the procedure. In general, the data items passed in the RUN statement must match, in data type and order, the corresponding parameters defined in the called procedure. For more information on run-time parameters, see the examples and the paragraphs on procedure parameters that follow.

Compile-time arguments consist of any space-separated strings that you want to pass to the procedure at compile time. When executed with compile-time arguments, Progress automatically recompiles the procedure, substituting each argument for {n} in the 4GL, where n is an integer specifying the ordinal position of the argument in the RUN statement, starting at 1. Compile-time arguments must follow any run-time parameters in the statement. You can only specify compile-time arguments when running external procedures.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095