If file:PAGE-COUNT if coded under CA Easytrieve release 11.x, then the following error will occur:
130 TITLE 1 TITLE-LINE-1 COL 10 HS-CTL1 COL 126 REPORT2:PAGE-COUNT
EZTC0618E >>> $ incorrect qualification
EZTC0125E >>> $ fieldname not defined
PAGE-COUNT is documented to reside in working-storage and therefore it is not correct to qualify it with the REPORT filename.
Since it can be only used inside a REPORT definition, it is clear to which file it refers.
Therefore, it is enough to remove the qualification (that is, use PAGE-COUNT instead of REPORT2:PAGE-COUNT).
This will resolve the EZTC0618E and EZTC0125E errors.