A key data structure (%KDS) is allowed only for externally described files accessed by key.
30
Cause . . . . . : A key data structure (%KDS) is allowed only with a CHAIN, DELETE, READE, READPE, SETGT, or SETLL operation to an externally described file accessed by key. It is not allowed with a program described file or an externally described file accessed by relative record number. The operation is ignored.
Recovery . . . : Correct the search argument operand for the operation, or specify K in column 34 of the File specification for the file. Compile again.