Previous Topic: RECORD StatementNext Topic: Parameters


Syntax

Syntax ADD/MODIFY RECORD

►►─┬─ ADD ────┬─ RECord name is record-name ──────────────────────────────────►
   └─ MODify ─┘

 ►─┬─────────────────────────────────────────┬────────────────────────────────►
   └─ SHAre ─┬─ record-structure-option ───┬─┘
             └─ record-description-option ─┘

 ►─┬───────────────────────────────────────┬──────────────────────────────────►
   └─ RECord ID is ─┬─ record-id-number ─┬─┘
                    └─ AUTo ─────────────┘

 ►─┬────────────────────────────────────────────────────┬─────────────────────►
   │ ┌────────────────────────────────────────────────┐ │
   └─▼─┬─────────────┬─ record-synonym-specification ─┴─┘
       ├─ INClude ◄──┤
       └─ EXClude ───┘

 ►─┬───────────────────────────────────────────────────────────────────────┬──►
   └─ LOCation MODe is ┬ calc-location-mode-specification ────────────────┬┘
                       ├ DIRect ──────────────────────────────────────────┤
                       ├ VIA set-name set ┬─────────────────────────────┬─┤
                       │                  └ displacement-specification ─┘ │
                       ├ VSAm ────────────────────────────────────────────┤
                       └ vsam-calc-location-mode-specification ───────────┘
 ►─┬─────────────────────────────────────────────────────────────┬────────────►
   └─ WIThin AREa area-name ─┬─────────────────────────────────┬─┘
                             ├─ SUBarea symbolic-subarea-name ─┤
                             └─ offset-expression ─────────────┘

 ►─┬─────────────────────────────────────────────────────────────┬────────────►
   └─ VSAm TYPe is ─┬─┬─ FIXed ────┬─ LENgth ─┬─ SPAnned ────┬─┬─┘
                    │ └─ VARiable ─┘          └─ NONSPAnned ─┘ │
                    └─ NULl ───────────────────────────────────┘

 ►─┬───────────────────────────────────────────────────────┬──────────────────►
   └─ MINimum ROOT length is ─┬─ root-length characters ─┬─┘
                              ├─ CONtrol length ─────────┤
                              ├─ RECord length ──────────┤
                              └─ NULl ───────────────────┘

 ►─┬───────────────────────────────────────────────────────────────┬──────────►
   └─ MINimum FRAgment length is ─┬─ fragment-length characters ─┬─┘
                                  ├─ RECord length ──────────────┤
                                  └─ NULl ───────────────────────┘
    ┌───────────────────────────────────────────────────────────────────────┐
 ►──▼─┬───────────────────────────────────────────────────────────────────┬─┴─►
      └─ DCTable name ─┬ BUILTIN ─────┬─┬────────────────────────────────┬┘
                       └ dctable-name ┘ └ is used FOR ─┬─ COMpression ───┤
                                                       ├─ DECOMpression ─┤
                                                       └─ BOTh ◄─────────┘

 ►─┬─────────────────────────────────────────────────────────────────┬────────►
   └─ PROcedure name procedure-name is used FOR ─┬─ COMpression ───┬─┘
                                                 └─ DECOMpression ─┘

 ►─┬──────────────────────────────────────────────────────────────────┬───────►
   │ ┌──────────────────────────────────────────────────────────────┐ │
   └─▼─ CALl procedure-name ─┬─ BEFore ──────────┬─┬──────────────┬─┴─┘
                             ├─ AFTer ───────────┤ ├─ CONnect ────┤
                             └─ on ERRor during ─┘ ├─ DISCONnect ─┤
                                                   ├─ ERAse ──────┤
                                                   ├─ FINd ───────┤
                                                   ├─ GET ────────┤
                                                   ├─ MODify ─────┤
                                                   └─ STOre ──────┘

 ►─┬──────────────────────────────────────────┬───────────────────────────────►
   └─ estimated OCCurrences are record-count ─┘

 ►─┬─────────────────────┬────────────────────────────────────────────────────►◄
   └─ EXClude ALL CALls ─┘

Expansion of record-structure-option

►►─── STRucture of record shared-record-name ─────────────────────────────────►

 ►─┬────────────────────────────────────────────────────────────┬─────────────►◄
   ├─ version-specification ────────────────────────────────────┤
   └─ of SCHema shared-schema-name ─┬─────────────────────────┬─┘
                                    └─ version-specification ─┘

Expansion of record-description-option

►►─── DEScription of record shared-record-name ───────────────────────────────►

 ►─── of SCHema shared-schema-name ───────────────────────────────────────────►

 ►─┬─────────────────────────┬────────────────────────────────────────────────►◄
   └─ version-specification ─┘

Expansion of record-synonym-specification

►►─── RECord ─┬─ SYNonym name ─┬──────────────────────────────────────────────►
              └─ name SYNonym ─┘

 ►─┬─ IS record-synonym-name FOR language language ─┬─────────────────────────►◄
   └─ FOR language language IS record-synonym-name ─┘

Expansion of calc-location-mode-specification

►►─── CALc USIng ─┬─ calc-element-name ─────────────┬─────────────────────────►
                  │     ┌─────────────────────┐     │
                  └─ ( ─▼─ calc-element-name ─┴─ ) ─┘

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

Expansion of displacement-specification

►►── DISplacement ─┬──USIng symbolic-displacement-name ─┬─────────────────────►◄
                   └─ page-count pages ─────────────────┘

Expansion of vsam-calc-location-mode-specification

►►─── VSAm CALc USIng calc-element-name ──────────────────────────────────────►

 ►─── DUPlicates are ─┬─ UNORDered ───┬───────────────────────────────────────►◄
                      └─ NOT allowed ─┘

Expansion of offset-expression

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

Syntax: DELETE RECORD

►►─── DELete RECord name is record-name ──────────────────────────────────────►◄

Syntax: DISPLAY/PUNCH RECORD

►►─┬─ DISplay ─┬─ RECord name is record-name ─────────────────────────────────►
   └─ PUNch ───┘

 ►─┬─────────────────────────────────────────────────┬────────────────────────►
   │ ┌─────────────────────────────────────────────┐ │
   │ │                 ┌─────────────────────────┐ │ │
   └─▼─┬─ WITh ──────┬─▼─┬─ ALL COMment TYPes ─┬─┴─┴─┘
       ├─ ALSo WITh ─┤   ├─ AREas ─────────────┤
       └─ WITHOut ───┘   ├─ COMments ──────────┤
                         ├─ CULprit headers ───┤
                         ├─ DETails ───────────┤
                         ├─ ELements ──────────┤
                         ├─ OLQ headers ───────┤
                         ├─ SHAred structures ─┤
                         ├─ SYNonyms ──────────┤
                         ├─ ALL ───────────────┤
                         └─ NONe ──────────────┘
 ►─┬──────────────────────┬───────────────────────────────────────────────────►
   └─ VERB ─┬─ ADD ─────┬─┘
            ├─ MODify ──┤
            ├─ DELete ──┤
            ├─ DISplay ─┤
            └─ PUNch ───┘

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

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