ERR_QUIT( )

The ERR_QUIT( ) function displays on the Error line the text of an SQL or 4GL error message, corresponding to a negative integer argument, and then terminates the program.

4GLREF00000082.gif

The argument of ERR_QUIT( ) specifies an error message number. This must be less than zero. It is typically the value of the global status variable, which is affected by both SQL and 4GL errors. For SQL errors only, you can examine the global SQLCA.SQLCODE record.

The ERR_QUIT( ) function is identical to the ERR_PRINT( ) function, except that ERR_QUIT( ) terminates execution once the message is printed. ERR_QUIT( ) is primarily useful when you are developing a 4GL program. The message that it returns is probably not helpful to the user of your application.

References

ERR_GET( )

ERR_PRINT( )

ERRORLOG( )

STARTLOG( )