ZIP_FILES

LANSA Composer

ZIP_FILES

This Activity will zip a list of files and place them in a zip archive. The files to be included may be specified in a file list. The name of the zip archive may be specified or a default name may be created.

The location for the zip archive must be specified. If the zip archive already exists, it may be overwritten or added to. If the zip archive does not exist it will be created.

Other Activities for zip processing:

TEXT_SUBSTITUTE

Zips a list of directories and adds them to a zip archive.

ZIP_LIST

Lists the contents of an existing zip archive.

ZIP_UNZIP

Extracts a single file or the entire contents of a zip archive.

 

INPUT Parameters:

FILELIST : Required

This parameter should contain a list of files. The list must contain at least one entry.

Each entry in the list should be the full directory path and file name.
For example:  Windows    C:\mydirectory\ord1.xml
IBM i     /orders/OrdJan.csv

ZIPARCHIVEDIRECTORY : Required

This value should contain the full path to be used for the location of the zip archive file that will be created.
For example:  Windows     C:\mydirectory
IBM i    /orders

ZIPARCHIVENAME : Optional

This value may contain the full name of the zip file to be created.
If this value is not provided, a name will be generated using the system setting ZIP archive file name prefix,  plus a unique number and a .zip extension.
For example:   ZP147.zip

CLEARARCHIVE : Optional

This value may contain YES or NO. The default is YES.
If YES, the zip archive file created is cleared before adding new entries.
If NO, the zip archive is not cleared before adding new entries. Therefore, if the zip archive already exists, the files in the FILELIST will be added to the existing archive.

OUTPUT Parameters:

ZIPARCHIVENAME

Upon successful completion, this parameter will contain the name of the zip archive actually used. This may be the same as the value input or may be the name generated by the activity.

ZIPARCHIVEPATH

Upon successful completion, this parameter will contain the full path and name of the zip archive.