2.7.7 Precompiling a Reportfile

Visual reports and text reports must be compiled into a compiled report before they can be run. Normally, your visual report or text report is automatically compiled each time you run the report, and the compiled report is discarded after the run. If you enable precompiling for a reportfile, that report is compiled when you modify it, and the compiled reportfile is kept.

Note: Client/Server ignores the precompiled flag. Each time the report is processed it will be compiled.

You can change the precompiling status of a logical reportfile with toolkit as follows:

gifs/20000000.gif Start toolkit on your database:

c:\> toolkit dbname

gifs/20000000.gif Select 3 - Report Generator Menu from the Toolkit Development Menu.

gifs/20000000.gif Select D5 - Report Compiling Status from the Report Generator Menu.

gifs/20000000.gif Enter the logical name of the reportfile and press STORE <F5>, or press CANCEL <F1>-X to leave the old precompiling status unchanged.

gifs/20000000.gif Enter yes to enable precompiling, or no to disable precompiling.

Press STORE <F5> to change the precompiling status, or press CANCEL<F1>-X to leave the old precompiling status unchanged.

You can change the precompiling status of a logical reportfile with the following command:

c:\> rptadmin -uv -P "precompile" lfname

Precompile is yes to enable precompiling, or no to disable it. Lfname is the logical name of the reportfile.