endfile endfile Statement endfile; This statement causes the program to behave as if the end of the current input file had been reached. Any FINAL actions are executed. Processing continues with the next input file. If there are no further input file to process, any END actions are executed.