Previous Topic: SET StatementNext Topic: Parameters


Syntax

ADD/MODIFY SET statement

►►─┬─ ADD ────┬─ SET name is set-name ────────────────────────────────────────►
   └─ MODify ─┘

 ►─┬──────────────────────────────────────────────────────────────────────────►─
   └─ SAMe AS SET base-set-name ──────────────────────────────────────────────

─►────────────────────────────────────────────────────────────┬───────────────►
  ─── of SCHema base-schema-name ─┬─────────────────────────┬─┘
                                  └─ version-specification ─┘

 ►─┬─────────────────────────┬────────────────────────────────────────────────►
   └─ ORDer is ─┬─ FIRst ──┬─┘
                ├─ LASt ───┤
                ├─ NEXt ───┤
                ├─ PRIor ──┤
                └─ SORted ─┘
 ►─┬──────────────────────────────────────────────────────┬───────────────────►
   └─ MODe is ─┬─ CHAin ─┬───────────────────┬──────────┬─┘
               │         └─ LINked to PRIor ─┘          │
               ├─ VSAm INDex ───────────────────────────┤
               └─ INDex indexed-set-mode-specification ─┘

 ►─┬───────────────────────────────────────────────────┬──────────────────────►
   ├─ OWNer is record-name ─┬────────────────────────┬─┤
   │                        └─ owner-record-options ─┘ │
   └─ OWNer is SYStem ─┬──────────────────────┬────────┘
                       └─ area-specification ─┘

 ►─┬────────────────────────────────────────────────────────────────────────┬─►◄
   │ ┌────────────────────────────────────────────────────────────────────┐ │
   └─▼─┬─────────────┬─ MEMber is record-name ─┬─────────────────────────┬┴─┘
       ├─ INClude ◄──┤                         └─ member-record-options ─┘
       └─ EXClude ───┘

Expansion of indexed-set-mode-specifications

►►─┬─ USIng symbolic-index-name ────────────────────────────────────────────┬─►◄
   └─ BLOck CONtains key-count keys ─┬────────────────────────────────────┬─┘
                                     └─ DISplacement is ─┬─ 0 ◄─────────┬─┘
                                                         └─ page-count ─┘

Expansion of owner-record-options

►►─┬──────────────────────────────────────────────────────┬───────────────────►
   └─ NEXt dbkey POSition is ───┬─ next-dbkey-position ─┬─┘
                                └─ AUTo ────────────────┘

 ►─┬──────────────────────────────────────────────────────┬───────────────────►
   └─ PRIor dbkey POSition is ─┬─ prior-dbkey-position ─┬─┘
                               └─ AUTo ─────────────────┘

 ►─┬────────────────────────────────────────────────┬─────────────────────────►◄
   └─ PRImary KEY is ─┬─ system-owned-index-name ─┬─┘
                      ├─ CALc ────────────────────┤
                      └─ NULl ────────────────────┘

Expansion of area-specification

►►─── WIThin AREa area-name ──────────────────────────────────────────────────►

 ►─┬─────────────────────────────────────────────────────────────────────┬────►◄
   ├─ SUBarea symbolic-subarea-name ─────────────────────────────────────┤
   └─ OFFset ─┬─ 0 ◄──────────────────────┬── for ─┬─ 100 PERcent ◄─────┬┘
              ├─ offset-page-count PAGes ─┤        ├─ percent PERcent ──┤
              └─ offset-percent PERcent ──┘        └─ page-count PAGes ─┘

Expansion of member-record-options

►►─┬────────────────────────────────────────────────────────┬─────────────────►
   └─ INDex dbkey POSition is ─┬─ OMItted ────────────────┬─┘
                               ├─ index-dbkey-position ───┤
                               └─ AUTo ───────────────────┘

 ►─┬────────────────────────────────────────────────────┬─────────────────────►
   └─ NEXt dbkey POSition is ─┬─ next-dbkey-position ─┬─┘
                              └─ AUTo ────────────────┘

 ►─┬──────────────────────────────────────────────────────┬───────────────────►
   └─ PRIor dbkey POSition is ─┬─ prior-dbkey-position ─┬─┘
                               └─ AUTo ─────────────────┘
 ►─┬────────────────────────────────────────────────────────────────────────┬─►
   └─ LINked to OWNer ─┬──────────────────────────────────────────────────┬─┘
                       └─ OWNer dbkey POSition is ┬ owner-dbkey-position ┬┘
                                                  └ AUTo ────────────────┘

 ►──┬───────────────────────────────────────────────────────────────────────┬─►
    └─ FOReign KEY is ─┬──────────────────────────────────────────────────┬─┘
                       ├─ element-name ──────┬────────────┬─────────────┬─┘
                       │                     └─ NULlable ─┘             │
                       │                                                │
                       │      ┌────────────────────────────────┐        │
                       │      ▼                                │        │
                       ├─  ( ── element-name ──┬────────────┬──┴── ) ───┤
                       │                       └─ NULlable ─┘           │
                       └─ NULl ─────────────────────────────────────────┘

 ►─┬─ MANdatory ──┬──┬─ AUTomatic ──┬─────────────────────────────────────────►
   └─ OPTional ───┘  └─ MANual ─────┘

 ►─┬──────────────────┬───────────────────────────────────────────────────────►◄
   └─ key-expression ─┘

Expansion of key-expression

►►─┬──────────────┬─ KEY is ──────────────────────────────────────────────────►
   ├─ ASCending ──┤
   └─ DEScending ─┘

 ►─┬─ sort-element-name ─┬───────────────┬───────────────┬────────────────────►
   │                     ├─ ASCENDING ◄──┤               │
   │                     └─ DEScending ──┘               │
   │     ┌─────────────────────────────────────────┐     │
   ├─ ( ─▼─ ( sort-element-name ─┬───────────────┬─┴─ ) ─┤
   │                             ├─ ASCending ◄──┤       │
   │                             └─ DEScending ──┘       │
   └─ DBKey ─┬───────────────┬───────────────────────────┘
             ├─ ASCending ◄──┤
             └─ DEScending ──┘
 ►─┬────────────────────┬─┬────────────────┬──────────────────────────────────►
   └─ NATural sequence ─┘ ├─ COMpressed ───┤
                          └─ UNCOMpressed ─┘

 ►─┬────────────────────────────────────┬─────────────────────────────────────►◄
   └─ DUPlicates are ─┬─ FIRst ───────┬─┘
                      ├─ LASt ────────┤
                      ├─ UNORDered ───┤
                      ├─ NOT allowed ─┤
                      └─ by DBKey ────┘

DELETE SET statement

►►─── DELete SET name is set-name ────────────────────────────────────────────►◄

DISPLAY/PUNCH SET statement

►►─┬─ DISplay ─┬─ SET name is set-name ───────────────────────────────────────►
   └─ PUNch ───┘

 ►─┬───────────────────────────────────────┬──────────────────────────────────►
   │ ┌───────────────────────────────────┐ │
   │ │                 ┌───────────────┐ │ │
   └─▼─┬─ WITh ──────┬─▼─┬─ DETails ─┬─┴─┴─┘
       ├─ ALSo WITh ─┤   ├─ ALL ─────┤
       └─ WITHOut ───┘   └─ NONe ────┘
 ►─┬──────────────────────┬───────────────────────────────────────────────────►
   └─ VERB ─┬─ ADD ─────┬─┘
            ├─ MODify ──┤
            ├─ DELete ──┤
            ├─ DISplay ─┤
            └─ PUNch ───┘

 ►─┬─────────────────────┬────────────────────────────────────────────────────►
   └─ AS ─┬─ COMments ─┬─┘
          └─ SYNtax ───┘

 ►─┬─────────────────────────────────┬────────────────────────────────────────►◄
   └─ TO ─┬─ module-specification ─┬─┘
          └─ SYSpch ───────────────┘