Previous Topic: REMOVE ALL SubstatementNext Topic: RECORD SYNONYM


VIEW ID Substatement

The VIEW ID substatement establishes or removes a view of record elements. Once established, this view can be copied into one or more CA IDMS subschemas. Before issuing a VIEW ID substatement, you should ensure that all record elements identified in the view are present in the record. The following rules apply to the VIEW ID substatement:

Syntax

VIEW ID substatement

    ┌────────────────────────────────────────────────────────────────────────
►►──▼─┬──────────┬─ VIEw ID is view-identifier ──────────────────────────────►─
      └─ REMove ─┘

  ──────────────────────────────────────────────────┐
─►──┬─────────────────────────────────────────────┬─┴────────────────────────►◄
    │ ┌─────────────────────────────────────────┐ │
    └─▼─ RECord ELement is record-element-name ─┴─┘

Parameters

VIEw ID is view-identifier

Identifies a list of record elements that is to comprise a view. View-identifier must be a 1- through 32-character alphanumeric value. The VIEW ID substatement can appear any number of times in one RECORD statement. If the optional REMOVE parameter is specified, the named view is deleted.

RECord ELement is record-element-name

Identifies a record element to be added to the view. Record-element-name must be an element that exists in the named record-element structure. This clause can appear any number of times in one VIEW ID substatement.