How to: |
Reference: |
The COMPILE command translates a MODIFY request stored in a FOCEXEC into an executable code module. This module, like an object code module, cannot be edited by a user. However, it loads faster than the original request because the MODIFY commands have already been interpreted by FOCUS (the initialization time of a compiled MODIFY module can be four to ten times faster than the original request). Compiling a request can save a significant amount of time if the request is large and must be executed repeatedly. You compile the request once, and execute the module as many times as you need it.
Enter the COMPILE command at the FOCUS command level (the FOCUS prompt). To execute/run this module, use the RUN command from the FOCUS command level.
COMPILE focexec [AS module]
where:
Is the name of the FOCEXEC where the request is stored.
Is the name of the module. The default is the FOCEXEC name. FOCEXEC names and module names are system dependent.
RUN module
where:
Is the name of the module.
You will see no difference in execution between the module and the original request, but it will load much faster.
The following are considerations for compiling a MODIFY request:
|
Information Builders |