Executing Operating System Commands Locate the document in its SAP Library structure

If your system is running under UNIX or WINDOWS NT, you can execute an operating system command in the OPEN DATASET statement using the FILTER addition:

Syntax

OPEN DATASET <dsn> FILTER <filt>.

The operating system command in the field <filt> is processed when the file <dsn> is opened.

Example

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.

 

 

 

 

 

Leaving content frame