Setting a default base layout
Upon return from the Formatted XREF Definition screen to the Define XREF screen (see the following figure), notice that File-AID has entered the member name on line 3, along with the 01-level structure name OUTSIDE-VENDOR-WORK-ORDER, and a status indicator of BASE.
When no conditions are specified for a layout, File-AID assigns a status of DEFAULT-BASE to that layout and uses the default layout whenever it encounters a data record that does not match any of the XREF criteria specified. In this example, use the structure
INTERNAL-WORK-ORDER in the ORDERWO source member as a default layout.
Define XREF Screen. Specifying the Default-Base Layout.
Steps:
- Leave the Cmd column blank.
- Type ORDERWO in the Member Name column on the fourth line.
- Type INTERNAL-WORK-ORDER in the Beginning Data-Name column.
- Press Enter. File-AID redisplays the Define XREF screen with the fourth line marked with a status of DEFAULT-BASE as illustrated in Define XREF Screen. Entering Description and Saving XREF Definition.
More About Default Layouts
- The DEFAULT-BASE must be the last BASE in the XREF.
- Only one layout may be marked as a DEFAULT-BASE.
- A DEFAULT-BASE may be followed by any number of SEGMENT layouts.
- There is no way to specify a default SEGMENT other than to set up a condition in the last SEGMENT of a group of SEGMENTs that is likely to be true (for example,
FIELDX NE CPWR). - The beginning data name can be abbreviated as long as the partial name is unique or matches the first structure starting with the name specified. For example,
INTERNAL-W is valid in this case.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*