Select Layout Dialog
Clicking the Add button in the Layouts area of the Remapping Dialog or Remapping Editor displays the Select dialog. You can either manually enter a COBOL layout definition or select an existing structure from the current project and specify its Usage. Click OK after you entered or selected the layout to add it to the remapping file.
Enter COBOL definition
Click the Enter COBOL definition button, when you want to manually enter a COBOL layout definition. In the Enter COBOL definition box, type (or paste) the layout definition you want to add to the Remapping file, for example:
01 ZIPCODE-TABLE.
05 STATE-ABBR PIC X(2).
05 FILLER PIC X.
05 ZIP-CODE PIC X(5).
05 FILLER PIC X.
05 CITY-NAME PIC X(30).
05 AREA-CODE PIC X(3).
The entered layout definition will be saved in the Structures folder of the current project when clicking OK.
Select existing structure from project
Click the Select existing structure from project button, when you want to use an already existing layout. Select one layout from the list of structures.
Usage
The Usage drop-down lists two entries, Base and Default and determines how the layout is used.
- Base defines the start of each (or the entire) record - multiple Base layouts are allowed when the data stub contains multiple record types. Base requires to specify selection criteria. Whenever remapping is applied to a data stub record, each Base is tested to see if it matches the record. The matching Base is then applied, or the Default Base is applied if no criteria for any Base matches the record.
- Default identifies the DEFAULT BASE. No selection conditions are needed. When a data record fails to match all previous Base criteria, the Default layout is selected as the base layout. Only one layout may be the DEFAULT BASE.