With R11.x, encountering this error message: EZIOE002 Error opening file xxx. File type incompatable with the dataset organization.

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

Description:

Coding this in an Easytrieve program:

FILE filename VS

Results in the following error:

EZIOE002 Error opening file FILEI.
File type incompatible with the dataset organization.

Solution:

To define an ESDS file under r11.x:
Use FILE statement syntax of "FILE xxx VS(ES)" or specify "FILE xxx SEQUENTIAL".

The VS parameter was with older versions of Easytrieve, .and it was included in V6.4 for compatibility purposes.

When FILE filename VS is specified, that means FILE filename INDEXED, which is KSDS, in r11.x.
When FILE filename VS(ES) is specified, that means FILE filename SEQUENTIAL, which is ESDS, in r11.x.