ENABLE Reference Manual

ENABLE FUNCTION KEYS
Single File INSERT Operations
READ GENERIC (F8)
A READ GENERIC operation reads the first record (or records)
having a key value that matches the partial value you enter. You
cannot perform a READ GENERIC operation on the record number
field of a relative, entry-sequenced, or unstructured file. If a
key field is defined as USAGE IS COMP or TYPE BINARY in the
record description, performing a READ GENERIC operation might
return misleading results.
Single-File INSERT Operations
ENABLE applications supply two types of INSERT operations:
• INSERT--To insert a single record
• INSERT BOX--To insert several records at one time (Normally,
you only use this type of INSERT operation for applications
that display more than one record.)
Before you perform either INSERT operation, you must enter
appropriate values in a record (or records).
For INSERT operations on entry-sequenced and unstructured files,
the application ignores any value you enter in a record number
field. For relative files, you can enter the following in the
Record Number field:
• No value to indicate that the record is to be inserted at the
first available position
• A positive value to indicate that the record is to be inserted
in a particular position
• A negative value to indicate that the record is to be inserted
at the end of the file
You can reverse an INSERT operation by requesting an UNDO
operation. Refer to the discussion of the UNDO operation later
in this section for more information.
8-9