Does RECORD-COUNT need qualification?

Document ID : KB000014082
Last Modified Date : 14/02/2018
Show Technical Document Details

Does RECORD-COUNT need to be qualified?

I am getting the following compiler error:

            IF RECORD-COUNT GT 0

 EZTC0644E >>>         $ more qualification required


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. 



Additional Information:

Here is the link for the corresponding knowledge document for the need to qualify FILE-STATUS: