Compiling PSL Code

The PSL compiler contains an interface that recognizes classes, methods, and properties that appear in the following tables:

Data item documentation for these tables and their attributes appears in DATA-QWIK.

The following steps occur when compiling a PSL procedure.

Specifying Compiler Options

The compilation process can be tailored using a number of compiler options. The options that are in effect during the compilation of a single PSL module are determined in the following precedence order (listed from highest to lowest):

Defining the Environment Specific Settings for the PSL Compiler

The PSL compiler can be tailored to the needs and requirements of the environment in which it runs. Perform the following steps to modify these settings.

DO bootUCOPTS^UCGMCU()

The following settings can be specified in UCOPTS.ini:

The PSL compiler supports a number of properties that are environment specific. Some of these properties are immutable, for example, because they are derived from the GT.M version. Other values, however, can be modified to optimize the application's runtime behavior.

Each individual setting is explained in the standard UCOPTS.ini file.

Defining Process Specific Overrides for PSL Compiler Settings

The environment specific settings of UCOPS.ini, which have been compiled into routine UCOPTS, can be overridden for the GT.M process that calls the PSL compiler. To use this feature, perform the following steps:

You cannot override PSL property values through this mechanism, but you can override all #INFO, #OPTIMIZE, #OPTION, and #WARN settings.

Compiling a PSL Procedure

To compile a PSL procedure into an M routine, run the Build Run Time Routine function (DBSPROCB) to convert the PSL code in your procedure into the associated M code. You can specify a number of compiler commands (i.e., parameters) when running this function. After compiling, the following line appears along with most syntax and compilation errors (if any exist):

ZEXAMPLE    - compile runtime routine ZEXAMPLE … 8:25 AM

For additional guidelines concerning PSL code compilation, refer to the following sections:

Qualifiers on Filers

Compiler Commands

Exception Handling