Progress
Programming
Handbook
Compile-time Versus Run-time Execution
In Progress you execute a procedure using the RUN statement. However, you can use two basic techniques to compile and execute a procedure:
- Compile-time execution — You can compile the procedure file on the fly when you execute it using the RUN statement. In this case, Progress locates the procedure file, compiles it to a temporary r-code file, then executes the temporary r-code file.
- Run-time execution — You can generate an r-code file from the procedure file using the COMPILE statement or the Application Compiler in the ADE. Then, when you execute the procedure with the RUN statement, Progress locates and executes the r-code file directly.
Both techniques use the PROPATH environment variable settings. That is, both the COMPILE and RUN statements locate procedures using PROPATH. (For more information on the PROPATH environment variable, see the Progress Client Deployment Guide.) How the RUN statement executes a procedure (compile-time or run-time execution) depends on how you set up your environment and when you choose to compile the procedure. Each technique provides different capabilities and advantages.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |