The file is not allowed with built-in function %EOF.
20
Cause . . . . . : The file specified as the parameter to built-in function %EOF must have a Device entry (positions 36-42 on File Description specification) of DISK, SEQ, SPECIAL, or WORKSTN. In addition, built-in function %EOF is allowed only for files that allow operation codes READ, READC, READE, READP, READPE, and WRITE. The built-in function is ignored.
Recovery . . . : Specify a valid file name as the parameter for %EOF. Compile again.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.