z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


The exit statement

z/OS UNIX System Services User's Guide
SA23-2279-00

The exit statement makes an awk program behave as if it had just reached the end of data input. No further input is read. If there is an END action, awk executes it before the program ends. As with next, exit is often used when input data is found to be incorrect.

If exit appears inside the END action, the program ends immediately.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014