Previous Topic: OverviewNext Topic: Variable Array Processing


Batch Automatic Editing and Error Handling

The automatic editing and error handling facility operates in the batch environment in much the same manner as it does in the online environment. On a mapin operation, the facility edits and performs error checking on data being transferred from an input file to variable storage. On a mapout operation, the facility edits data being transferred from variable storage to an output file.

The automatic editing and error handling facility in batch mode differs in the following ways.

Error Handling

In the online environment, the terminal operator's screen is redisplayed with error messages. In the batch environment, the error record is written to a suspense file and error messages are written to the log file.

Automatic Editing and Error Handling Options

In the batch environment, several automatic editing and error handling options are not applicable. Options you can specify for file map fields include:

You can specify these options in MAPB on the User-defined Edit Modules screen, the Additional Edit Criteria screen, and the Map Read/Write options screen. With the batch mapping compiler, you use the MFLD statement.

Implied Decimal Point and Sign

The external picture of a file map field can include an implied decimal point (represented by the symbol V) and an implied sign (represented by the symbol S). This differs from map fields in the online environment, in which external pictures, which represent how fields are to be displayed on a screen, cannot include implied decimal points and signs.

Data Types

In the batch environment, the data type of an external field can be display, zoned decimal, packed decimal (COMPUTATIONAL-3) or binary (COMPUTATIONAL). In the online environment, the data type must be display.

Null Values

In the online environment, if the terminal operator enters nothing in a field, nothing is mapped into the associated field in variable storage. In the batch environment, unless the input data transfer option is set to NO, all input record fields included in the map definition are mapped into variable storage.