CA EZT R11.6 compatibility mode produces A010 error
search cancel

CA EZT R11.6 compatibility mode produces A010 error

book

Article ID: 215989

calendar_today

Updated On:

Products

Easytrieve Report Generator

Issue/Introduction

The CA Easytrieve output shows the following execution error under release 11.6 in compatibility mode:

    *******A010 INVALID FILE REFERENCE - filename

when a field is referenced/loaded with a key before doing the controlled READ logic.

 

Environment

CA Easytrieve Report Generator, release 11.6, compatibility mode

 

Resolution

A010 INVALID FILE REFERENCE - filename
A fieldname was referenced in a file that had no active record. The file 
might have been closed, or might be at end-of-file, or in synchronized file
mode with no active record. The name of the file is specified by filename.

When a field is referenced or initialized with a key in a file before opening it, then the A010 INVALID FILE REFERENCE error will result.

The A010 is an execution error.  Therefore, even though it was compiled as 11.6 compatibility mode, at execution time, the release 11.6 functionality (true and compatibility) is to ensure that the files must be opened before being referenced.  

The coding suggestion is to load the key into working storage fields and then use the working storage fields as the key for the file to be read.