ZIP Store files in ZIP archive

ONXZIP zipfile [, F=C|B] [, M=S|N|TO-E|TO-A] [, C=D|BEST-S|BEST-C]

The files marked with the Action Code X will be compresed and stored in the specified ZIP archive under the same name.

zipfile Name of the ZIP archive. This must have been created previously.

It is currently not possible to store the same file more than once in a ZIP archive.

F= Format in which the file should be stored in the ZIP archive.

C (Compatible)

The BS2000 file so created can be transferred to another operating system (by means of FTP in binary mode) and thence accurately processed.

B (BS2000-Modus)

The BS2000 file so created can only be accurately processed by other BS2000 systems.

M= Coding system under which the file should be stored in the ZIP archive.

S (Standard)

The input file will be stored using the existing format of the ZIP archive. See Parameter F=

N (None)

The BS2000 files (SAM/ISAM/PAM) will not be subjected to any code transformation when stored in the ZIP archive.

TO-A (To ASCII)

Existing EBCDIC BS2000 files (SAM/ISAM) will be converted to ASCII when stored in the ZIP archive.

TO-E (To EBCDIC)

Existing ASCII files (SAM/ISAM) will be converted to EBCDIC when stored in the ZIP archive.

C= Compression method, with which the file should be stored in the ZIP archive.

D (Default)

This method is a compromise between processing speed and compression rate.

BEST-C (Best Compression)

Best compression rate, but at a cost of higher CPU utilisation.

BEST-S (Best Speed)

Lowest CPU utilisation.

Notes:

Only files, not library elements can be stored in a ZIP archive by means of the Variable Action ONX ZIP. The ZIP archive will be created if it does not exist.

Instead of ONX ZIP, files and library elements can be stored in a ZIP archive by means of the

ONX ADD zipfile command.

If the file zipfile does not exist, the user will be asked whether a new library or a new ZIP archive should be created.

Using ONXADD, the file or library elements will be added to the ZIP archive with the standard settings described above.

Example:

ONXZIP TMP.ZIPFILE,M=BEST-C