How to Unzip the zipped file

  • 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

  • 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[/url]

    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

  • That's how I do it - see attachment

    Mack

  • Can you tell what command need to be given?

  • 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?

  • 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

  • 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

  • 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

  • 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?

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

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply