Previous Topic: MODIFYNext Topic: RETURN DB-KEY


READY

Purpose

Overrides the usage mode specified in a dialog's subschema for one or more database areas.

Database areas are readied when a run unit begins (that is, immediately before the execution of the first database-access command issued by a process).

Syntax

►►─── READY ────┬─────────────┬─────┬─────────────────────────────────────────►
                ├─ area-name ─┤     └─ USAGE-MODE ──┬──────┬──────────────────
                └─ ALL ◄ ─────┘                     ├─ IS ─┤
                                                    └─ =  ─┘

 ►──────────────────────────────────────────────────┬─────────────────────────►◄
  ──┬─────┬─────────────┬────┬─ RETRIEVAL ◄ ─┬───┬──┘
    │     ├─ PROTECTED ─┤    └─ UPDATE ──────┘   │
    │     └─ EXCLUSIVE ─┘                        │
    │                                            │
    └─ NOREADY ──────────────────────────────────┘

Parameters

area-name

Readies the named area in the specified usage mode.

ALL

Readies all areas in the specified usage mode.

If neither area-name nor ALL is specified, all areas defined in the dialog's subschema are readied in the usage mode specified in the subschema.

USAGE-MODE

Specifies the usage mode in which the object areas are readied.

IS or = are optional keywords and have no effect on processing.

PROTECTED

Prevents concurrent update of the object areas.

EXCLUSIVE

Prevents concurrent use of the object areas.

If neither PROTECTED nor EXCLUSIVE is specified, the usage mode is qualified as shared.

RETRIEVAL

Readies the object areas for retrieval only.

RETRIEVAL is the default when neither RETRIEVAL or UPDATE is specified.

UPDATE

Readies the object areas for both retrieval and update.

NOREADY

Indicates that the area or areas named are not to be readied.

Usage

Overview of Usage Modes

Usage modes restrict runtime operations. Database areas can be readied in a retrieval or update usage mode.

Usage modes can be qualified as protected, exclusive, or shared.

Considerations

Example 1: Readying an Area

The following example illustrates the use of the READY command:

READY ORDOR-REGION
USAGE-MODE IS PROTECTED UPDATE.

Example 2: Specifying That an Area Not be Readied

The following example illustrates the use of the NOREADY option. In this example, the area CUSTOMER-REGION is readied in shared update while the area ORDOR-REGION is not readied.

READY CUSTOMER-REGION
USAGE-MODE IS SHARED UPDATE.
READY ORDOR-REGION
USAGE-MODE IS NOREADY.

More information:

CA ADS Runtime System