RECORD-COUNT is as keyword which must be qualified if there are multiple files being used in one program.
This is so that CA Easytrieve will know which file's record count is being requested.
So, in the above example, the EZTC0644E compiler error will be resolved if we code the following:
filename:IF RECORD-COUNT GT 0
where filename will be the name of the specific file.