Overriding Error Processing

Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

You can customize database call processing by overriding the status codes of Online Express status flags and the text of default error messages. You do both on the DB Call Tailoring Editor dialog box.

Online Express provides the following status flags:

Status Flag

Default Status Code

OK-ON-REC

Normal

END-ON-REC

Normal

NTF-ON-REC (Not found)

Error

DUP-ON-REC

Error

VIO-ON-REC (Violation)

Error

When Online Express returns the Error status flag, the program aborts and performs the ERROR-SEND-AND-QUIT paragraph.

To override the default Error flag processing, you can change a status flag code from Error to Exception, and then write your own error routines at any of the database events on the DB Call Tailoring Editor.

Online Express also generates error messages that show which type of call failed and which record caused the failure. You can override the default messages with either a text message or a rule that contains a text message.