CMPO - Compilation Options

#### Search Results

Search

# CMPO - Compilation Options

This Natural profile parameter and its keyword subparameters can be used at session start to specify dynamically or to override the same compiler options which you can specify statically with the `NTCMPO` macro in the Natural parameter module or, during an active session, with the system command `COMPOPT`.

Possible settings | See CMPO Parameter Syntax.
Default setting | Identical to the corresponding `COMPOPT` options. See Keyword Subparameters or `COMPOPT` options.
Dynamic specification | yes | This parameter can only be specified dynamically. In the Natural parameter module, the macro `NTCMPO` is used instead.
Specification within session | yes | Use system command `COMPOPT`.

The following topics are covered below:

- CMPO Parameter Syntax

- NTCMPO Macro Syntax

- Keyword Subparameters

- Example of CMPO Parameter

- Example of NTCMPO Macro

## CMPO Parameter Syntax

The parameter syntax of `CMPO` is as follows:

CMPO=(keyword-subparameter=value,keyword-subparameter=value,...)

Notes:

1. The keyword subparameters are functionally identical to the compiler options that can be specified within the session, using the system command `COMPOPT`.
2. Each keyword subparameter can take the value `ON` or `OFF`, except for `GFID`, which can also take the value `VID`.
3. For further information such as default values and functional descriptions, refer to system command `COMPOPT` in the System Commands documentation or follow the links in the section Keyword Subparameters.

## NTCMPO Macro Syntax

The syntax of the `NTCMPO` macro in the Natural parameter module is as follows:

    NTCMPO CHKRULE=value,                                     *
           CPAGE=value,                                       *
           DB2ARRY=value,                                     *
           DB2BIN=value,                                      *
           DB2PKYU=value,                                     *
           DB2TSTI=value,                                     *
           DBSHORT=value,                                     *
           ECHECK=value,                                      *
           GDASC=value,                                       *
           GFID=value,                                        *
           KCHECK=value,                                      *
           LOWSRCE=value,                                     *
           MASKCME=value,                                     *
           MAXPREC=value,                                     *
           MEMOPT=value,                                      *
           NMOVE22=value,                                     *
           PCHECK=value,                                      *
           PSIGNF=value,                                      *
           THSEP=value,                                       *
           TQMARK=value,                                      *
           TSENABL=value

Notes:

1. The `DB2PKYU` option is only available if it is supported by the Natural for DB version installed at your site.
2. The keyword subparameters are functionally identical to the compiler options that can be specified within the session, using the system command `COMPOPT`.
3. Each keyword subparameter can take the value `ON` or `OFF`, except for `GFID`, which can also have the value `VID`.
4. In the `NTCMPO` macro, the keyword subparameters can be specified in any sequence.
5. For further information such as default values and functional descriptions, refer to system command `COMPOPT` in the System Commands documentation or follow the link in the syntax diagram.

## Keyword Subparameters

`CHKRULE` | `CPAGE` | `DB2ARRY` | `DB2BIN` | `DB2PKYU` | `DB2TSTI` | `DBSHORT` | `ECHECK` | `GDASC` | `GFID` | `KCHECK` | `LOWSRCE` | `MASKCME` | `MAXPREC` | `MEMOPT` | `NMOVE22` | `PCHECK` | `PSIGNF` | `THSEP` | `TQMARK` | `TSENABL`

For a complete description of the compiler options, refer to the system command `COMPOPT` in the System Commands documentation. The default values indicated there also apply to the corresponding keyword subparameters of `CMPO` and `NTCMPO`.

## Example of CMPO Parameter

    CMPO=(KCHECK=ON,PCHECK=ON)

## Example of NTCMPO Macro

             NTCMPO KCHECK=ON,                                             *
                   PCHECK=ON

### On this page

- CMPO Parameter Syntax
- NTCMPO Macro Syntax
- Keyword Subparameters
- Example of CMPO Parameter
- Example of NTCMPO Macro