Previous Topic: DML Precompiler OptionsNext Topic: Comment Generation


Dictionary Usage Mode

When the main area (DDLDML area) of the dictionary accessed by the DML precompiler is readied, several options are available. The default usage mode, shared update usage, is defined at system generation. Shared update mode readies the DDLDML area for both retrieval and update and allows other concurrently executing run units to ready the DDLDML area in shared update or shared retrieval usage mode. You can override the default usage mode by specifying either retrieval or protected update usage mode in your application program.

Syntax

 ►─┬─ *RETRIEVAL ────────┬────────────────────────────────────────────────────►
   └─ *PROTECTED-UPDATE ─┘

The asterisk (*) must be in column 1.

Parameters

*RETRIEVAL

Readies the DDLDML area for retrieval only and allows other concurrently executing run units to open the DDLDML area in shared retrieval, shared update, protected retrieval, or protected update mode.

Note: If the DDLDML area is readied for retrieval only, no program activity statistics can be logged.

*PROTECTED-UPDATE

Readies the DDLDML area for both retrieval and update and allows other concurrently executing run units to open the DDLDML area in retrieval usage mode only. The protected update usage mode prevents concurrent update of the area by run units executing under the same central version.

If included, the dictionary usage mode statement must precede all source statements.