COBCH1618 WITH COMPRESSION or WITH ENCRYPTION are only valid for INDEX files
You have specified the WITH COMPRESSION or WITH ENCRYPTION phrase on a file that is not an indexed file.
The WITH COMPRESSION and WITH ENCRYPTION phrases can only be specified in the SELECT statement for an indexed file.
Parent topic:
COBCH1601 - COBCH1620
Related concepts
The File-Control Paragraph (ACUCOBOL-GT)