I'd do it like this. CHKOUT is a DD DUMMY in the JCL
With an empty file (no records at all), you'll get a 16. With an EOF but no data you'll get 4. With data but no EOF you'll get 16. With data and an EOF you'll get a 0.