The remap record description indicates which items are to be included in the remap.
Items can be selected from the original data set, and new filler items and virtual items can be declared.
All items in the remap except filler items and virtual items must be present in the original data set.
Items can be included exactly as they appear in the original data set, or the items can be included with a change of name or with some options changed. The options which can be changed depend upon the item type. These restrictions are discussed separately with each item type.
Items in the data set can be left out of the remap entirely. Omitted items are neither available to user programs nor present in the user work area.
When a variable-format record is redescribed, items in the remap must appear in the same part which they occupied in the data set. That is, items in the fixed part must remain in the fixed part, while items in a variable part must remain in the same variable part.
Items need not be declared in the same order in the remap and in the original data set. When possible, the original order of items should be preserved to improve run-time efficiency.
The following diagrams illustrate the syntax for specifying remap records:
<remap record description>
┌◄────────────── ; ─────────────┐ ── ( ─┴─┬─<remap control item>──────┬─┴─┬─────┬─ ) ────────────────────► ├─<remap data item>─────────┤ └─ ; ─┘ ├─/1\─<remap filler item>───┤ ├─<remap group item>────────┤ ├─<remap link item>─────────┤ ├─<remap reference>─────────┤ ├─<remap regrouping>────────┤ ├─<remap set-subset-Access>─┤ └─<virtual item>────────────┘ ►─┬──────────────────────────────┬─┬───────────────────────────┬───────┤ └─<remap variable-format part>─┘ └─<select/verify condition>─┘
<remap control item>
──┬─<remap count items>───────┬────────────────────────────────────────┤ ├─<remap population items>──┤ ├─<remap record type items>─┤ └─<remap aggregate items>───┘
The elements of the syntax diagram are described under separate headings in the following text.