Enabling Automatic Editing and Error Handling

Enabling automatic editing for a map also enables error-handling for that map. Automatic editing can be enabled for an entire map and also for individual fields.
idmscu19
Enabling automatic editing for a map also enables error-handling for that map. Automatic editing can be enabled for an entire map and also for individual fields.
Default Values
The mapping facility supplies the following default settings for automatic editing:
  • Entire map --
    Enabled
  • Each field --
    Disabled, unless any of the following editing criteria is specified
Autopainted fields default to enabled if editing is appropriate.
A map that uses only these default values is not edited at runtime. The map developer must use the online or batch compiler to enable automatic editing for map fields. If automatic editing is disabled at the map level, automatic editing is disabled for all of that map's fields.
Map-level Editing
Automatic editing is enabled/disabled for an
entire map
when:
  • The
    Automatic editing
    prompt on the first General Options screen is used to either enable (/) or disable automatic editing.
  • The EDIT/NOEDIT option of the batch compiler MAP statement is used to enable (EDIT) or disable (NOEDIT) automatic editing.
Field-level Editing
  • Specifying any of the following on the Field Definition screen enables automatic editing for a field:
    • / for the
      Automatically edited
      prompt (Online compiler only)
    • An external picture
    • An edit table
    • A code table
  • Naming a user-written edit module enables or disables automatic editing:
    • Editing is enabled if the edit module is to be performed either before or after automatic editing.
    • Editing is disabled if the edit module is to be performed instead of automatic editing.
Automatic editing is enabled or disabled according to the most recent automatic editing or user-written error module specification. The General Options, Additional Edit Criteria, and Map Read/Write Options screens in the online compiler and the MFLD statement of the batch compiler are used to make these specifications and to enable automatic editing for a field.