ERR_PRINT( )

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

4GLREF00000081.gif

The argument of ERR_PRINT( ) 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.

ERR_PRINT( ) is most 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_QUIT( )

ERRORLOG( )

STARTLOG( )