Four Stars

How to Unzip .Z file in Talend Studio

Hi Team

 

I need to unzip a *.Z file using Talend and without using any external software like 7zip or Winrar.

 

Can you please help me on this.

 

Regards

Nishant

5 REPLIES
Twelve Stars TRF
Twelve Stars

Re: How to Unzip .Z file in Talend Studio

Use tFileUnarchive for this purpose.
It doesn't support gz format. You need to do it by yourself if you have this kind of files.

TRF
Ten Stars

Re: How to Unzip .Z file in Talend Studio

Talend do not support all formats (and never will)

 

but tSystem work well for this. What is the problem with external tools?

-----------
Four Stars

Re: How to Unzip .Z file in Talend Studio

Hi

 

Thanks for the suggestion. However the tFileUnarchive is not able to unzip the file.

 

Error: *.Z , Please wait.. the Archive is not a ZIP Archive.

Four Stars

Re: How to Unzip .Z file in Talend Studio

Can you please help me on how to integrate external tool like 7zip to Talend tsystem?
Ten Stars

Re: How to Unzip .Z file in Talend Studio

as example:

download command line version of 7zip - http://www.7-zip.org/download.html

 

 

c:\>7za --help

7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18

Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...]
       [<@listfiles...>]

<Commands>
  a: Add files to archive
  b: Benchmark
  d: Delete files from archive
  e: Extract files from archive (without using directory names)
  l: List contents of archive
  t: Test integrity of archive
  u: Update files to archive
  x: eXtract files with full paths
<Switches>
  -ai[r[-|0]]{@listfile|!wildcard}: Include archives
  -ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
  -bd: Disable percentage indicator
  -i[r[-|0]]{@listfile|!wildcard}: Include filenames
  -m{Parameters}: set compression Method
  -o{Directory}: set Output directory
  -p{Password}: set Password
  -r[-|0]: Recurse subdirectories
  -scs{UTF-8 | WIN | DOS}: set charset for list files
  -sfx[{name}]: Create SFX archive
  -si[{name}]: read data from stdin
  -slt: show technical information for l (List) command
  -so: write data to stdout
  -ssc[-]: set sensitive case mode
  -ssw: compress shared files
  -t{Type}: Set type of archive
  -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
  -v{Size}[b|k|m|g]: Create volumes
  -w[{path}]: assign Work directory. Empty path means a temporary directory
  -x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
  -y: assume Yes on all queries

then call it in tSystem 

-----------