Unzipping main Zip file with mutiple gz files.

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Ahimsa
Premium Member
Premium Member
Posts: 78
Joined: Fri Aug 18, 2006 11:05 pm

Unzipping main Zip file with mutiple gz files.

Post by Ahimsa »

I have a one main zip file which contains 20 different zipped gz files.
My question is how to unzip the main file and then process each of the gz file.

I could process single zipped gz file by using external source with source program as: gunzip -c -d /test/test123.txt.gz

Would appreciate any suggestions?

Thanks!

e.g. Main zip file is ABC001.zip this contains Test01.txt.gz, Test02.txt.gz, Test03.txt.gz.....
dwblore
Charter Member
Charter Member
Posts: 40
Joined: Tue Mar 28, 2006 12:02 am

Post by dwblore »

Hello
how about having a before script that takes care of the unzip/'uncompress'ing that you require.
Ahimsa
Premium Member
Premium Member
Posts: 78
Joined: Fri Aug 18, 2006 11:05 pm

Post by Ahimsa »

Script sounds good idea. Can you please provide sample script if posible.

Thanks!
Post Reply