Compiling a MODIFY Request

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.


Top of page

x
Syntax: How to Compile a MODIFY Request
COMPILE focexec [AS module]

where:

focexec

Is the name of the FOCEXEC where the request is stored.

module

Is the name of the module. The default is the FOCEXEC name. FOCEXEC names and module names are system dependent.


Top of page

x
Syntax: How to Execute a Module
RUN module

where:

module

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.


Top of page

x
Reference: Considerations for Compiling a MODIFY Request

The following are considerations for compiling a MODIFY request:


Information Builders