Insert a Record

Note: A new record is immediately padded to its minimum length with the character you specify in the Preferences section.
  1. In the Micro Focus Data File Tools window, ensure you have a data file open. If you are in Shared mode, click GUID-61340385-935F-4BDE-ACB8-D6079E7E2387-low.png (Switch to Exclusive Mode).
  2. Right-click the required record, then select Insert Record Before or Insert Record After, as appropriate.
    Note: If the file currently has no records or is an indexed file, select Insert Record.

    If you are inserting a record into a data file that is using a structure file, the Select Structure dialog box appears.

    GUID-8FA83170-E95B-4466-98B1-028C3BC328C8-low.png

  3. Select the required layout from the structure file in use, then click OK. (An additional layout (Use padding byte) is also available, which is always equal to the minimum record length of the file, and when selected initializes each field to the padding character specified in the Preferences section.)

    The record length is set according to the selected layout; the fields are initialized to default values (according to the field type); however, if you have selected a conditional layout, it is not displayed until the conditions within it are met.

    The green bar indicates where the record will be inserted.

    GUID-9ED7B18A-1F7D-4EBA-902B-2E2B41BA003A-low.png

    The editor switches to Insert mode, as indicated in the status bar.

    GUID-E3AFC4FF-9FEB-4B99-9458-17F9C1230C9E-low.png

  4. If the data file is unformatted (that is, not using a record layout), type the new record text in the free-text editing field in the bottom pane, then press Enter.

    For files with variable record lengths that are not using a layout, the length of any new record defaults to the file's minimum record length, but you can enter text up to the record's maximum length.

  5. If the data file is formatted, type the new record text in the layout fields, pressing Enter to move to the next field.
  6. Click GUID-414CC8A1-5ACA-4125-BE2B-4E0D668B7A2A-low.png (Save Record) to save the record.
  7. Click Yes to confirm.

    The new record is inserted.