Errors and Error Handling

Many import commands can result in a failure condition. This means that the template cannot complete the execution of a command in a meaningful fashion.

For example, if the template executes the command find BEGIN and the data file does not contain the string "BEGIN", a failure condition results. Execution of the program (whether in the header, record, or request blocks) will terminate. If the error occurs while Import is reading data from a file, an error message is displayed. If the error occurs in the header block, Import assumes that the template failed to handle the file format and tries the next available template in the list (repeating this process until all available templates have been tried).