err_quit()

err_quit() takes an integer expression as its argument and displays on the error line the text of an SQL or 4GL error message, corresponding to the error code specified by its negative integer argument, and terminates the program.

Description: ERR_QUIT()%20function

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

err_quit() is identical to err_print(), 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.

If an error occurs, these statements display the error message on the Error line, and terminate program execution:

 

If you specify the WHENEVER ANY ERROR CONTINUE compiler directive (or equivalently, the anyerr command-line flag), status is reset after certain additional 4GL statements.

 

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.