The "Compression Task" is used to either compress or decompress a file.
• Task Action
o Task Action - There are two options for the Task Action:
• Source Files or Directory
o Source stored in variable? - Selecting this checkbox will replace the "Source Connection Manager" with "Select Source Variable" and the drop down will be populated with all of the user created string variables within your package. The task will now expect the variable to contain the file or directory path to be compressed / decompressed.
o Source Connection Manager - Available if "Source stored in a variable" is not selected. The source connection manager selected will contain the path to the file or directory (zip compression only) that will be used for compression / decompression. If you do not have an existing File or flat file connection you wish to use, you can create one here.
o Include Sub Directories - Available only for Zip Compression. Selecting this option will include all subdirectories within the selected variable or connection manager path.
• Destination File or Directory
o Destination Stored in a Variable? - Selecting this checkbox will replace the "Destination Connection Manager" with "Select Destination Variable" and the drop down will include all of the user created string variables within your package. The task will now expect the file or directory to be compressed / decompress to be defined in the variable selected.
o Destination Connection Manager - Available if "Destination Stored in Variable" is not selected. The destination connection manager should point to the connection manager that points to the file or directory (zip compression only) that will be used for compression / decompression. If you do not have an existing File or flat file connection you wish to use, you can create one here.
o Overwrite Destination File - Select this if you want the compression task to overwrite the file if it already exists. If this option is not selected and the file already exists and an exception will be thrown.
• Compression Settings
o Compression Type - There are four compression algorithms that can be used
• Zip Settings (Available only for Zip Type)
o Compression Level - Sets the level of compression to be used during the compression process.
■ None - No compression will occur. The files and directories will be added to the zip file only.
■ Fast - A small amount of compression will occur but the compression time will be fast.
■ Normal - The normal level of compression will be used.
■ Above Normal - A slightly above normal level of compression will be used. The compression time will be slower.
■ Maximum - The maximum amount of compression will occur. The compression time will be slower than all of the other levels.
o Password - If used with a Task Action of Compress, the password specified will be added to the zip file. This password will be needed to open the zip file by any end user. If used with a Task Action of Decompress, the password will be used to decompress the file selected as the source file.
o Create Self-Extracting EXE - Selecting this option will create a self-extracting exe instead of a zip file.
o Temporary Directory - Enter here the directory where the temporary files will be created during compression. If left blank it will use the default location.
o Character Encoding - Specifies the character coding to be used in the archive.