Does RECORD-COUNT need qualification?
search cancel

Does RECORD-COUNT need qualification?

book

Article ID: 14082

calendar_today

Updated On:

Products

Easytrieve Report Generator PAN/SQL

Issue/Introduction



Does RECORD-COUNT need to be qualified?

Getting the following compiler error:

            IF RECORD-COUNT GT 0

 EZTC0644E >>>         $ more qualification required

Environment

Easytrieve Report Generator, release 11.6

Resolution

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.