OPEN DATASET <dsn> FILTER <filt>.
The operating system command in the field <filt> is processed when the file <dsn> is opened.
The following example works under UNIX:
DATA DSN(20) VALUE '/usr/test.Z'.
OPEN DATASET DSN FOR OUTPUT FILTER 'compress'.
......
OPEN DATASET DSN FOR INPUT FILTER 'uncompress'.
The first OPEN statement opens the file ‘/usr/test.Z’ so that the displayed data can be read into it in compressed form.
The second OPEN statement opens the file ‘/usr/test.Z’ so that the data is decompressed when it is read from the file.