Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

How to Unzip the zipped file Expand / Collapse
Author
Message
Posted Tuesday, February 12, 2013 7:23 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, June 14, 2013 12:31 AM
Points: 17, Visits: 46
Hi,

I have a WinZip file with the .dat.gz extension and i need to unzip that zip file and extract the files from it.
Can anyone help me out how to do this in ssis 2008?


Thanks
Post #1418958
Posted Tuesday, February 12, 2013 7:28 AM


Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Tuesday, August 26, 2014 3:26 AM
Points: 708, Visits: 3,287
How about using the Execute Process Task to trigger the exe to unzip the file?

---------------------------------------------------------


It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
David Edwards - Media lens

Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
Howard Zinn
Post #1418962
Posted Tuesday, February 12, 2013 7:38 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, January 13, 2014 7:34 AM
Points: 117, Visits: 499
That's how I do it - see attachment

Mack


  Post Attachments 
tmp.docx (39 views, 35.33 KB)
Post #1418965
Posted Tuesday, February 12, 2013 11:34 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, June 14, 2013 12:31 AM
Points: 17, Visits: 46
Can you tell what command need to be given?
Post #1419304
Posted Tuesday, February 12, 2013 11:35 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, June 14, 2013 12:31 AM
Points: 17, Visits: 46
It is throwing error [Execute Process Task] Error: In Executing "cmd.exe" "/c wzunzip -o "" """ at "C:\Program Files (x86)\WinZip", The process exit code was "9" while the expected was "0".

Can you pls help me?
Post #1419305
Posted Wednesday, February 13, 2013 5:43 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 7:19 PM
Points: 7,127, Visits: 12,655
iirc exit code 9 means "can't find file" or something like that. Do you have wzunzip installed at the location shown in the example and are the data files you're referencing in the command line exist?

edit: spelling


__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1419435
Posted Monday, February 25, 2013 2:59 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, June 14, 2013 12:31 AM
Points: 17, Visits: 46
Hi ,

Yes wzunzip is installed in the system

Error Description: In Executing "C:\Program Files (x86)\WinZip\WINZIP32.EXE" " -e -o *.dat.gz" at "D:\Test", The process exit code was "1" while the expected was "0".

Actually when it is run manually it is running when it is run through mainfram job it s throwing this error it is not extracting, can you pls help on this.

Or anyone has a script task to unzip this file? Pls let me know asap


Thanks,
Swetha
Post #1423513
Posted Monday, February 25, 2013 9:13 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 7:19 PM
Points: 7,127, Visits: 12,655
What changed? Your last post said error code 9, but this post says exit code 1. Looks like you're calling a different exe now.

What mainframe? Is that just a job scheduler remotely executing a job on a Windows machine? Try logging in as the account the mainframe uses and run the job that way. If there is a problem with permissions that's the simplest way to find it.


__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1423656
Posted Tuesday, May 7, 2013 11:24 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Wednesday, August 27, 2014 3:05 PM
Points: 355, Visits: 870
Yes wzunzip is installed in the system


Just though I should ask.. Is wzunzip installed on your system or the server you are trying to have run your process?
Post #1450265
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse