Zip a file
Moderators: chulett, rschirm, roy
Zip a file
Hi ,
Can any one help me on how to zip a csv file using datastage .i tried search in the forum but i did not find enough information .my requirement is that i have a file .i have to zip that file by job.
Thanks in advance,
Can any one help me on how to zip a csv file using datastage .i tried search in the forum but i did not find enough information .my requirement is that i have a file .i have to zip that file by job.
Thanks in advance,
You can do it easily from an after-job call. Just do an ExecSH and pass the ZIP command to the command line. If you are using WinZip you will need to download their command line extension.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
The first thing you need to do is to get a DOS command working; once that functions you can get it working from DataStage. There are several compression packages available, from the old PKZIP to the UNIX type gzip, compress and bzip. Which one you decide to use is up to your site.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
Thanks for all ,
i have installed winrar on mechine
I am able to zip a file from command line usind dos command
but i am not able to zip using DataStage by using same command
then i tried create a batch file then i ran working fine from me but when i am using same batch file from datastage not working .my winrar installed in c drive but my datastage installed in d drive ,
so how can i acieve this
please any one suggest me on this
Thanks in advance,
i have installed winrar on mechine
I am able to zip a file from command line usind dos command
but i am not able to zip using DataStage by using same command
then i tried create a batch file then i ran working fine from me but when i am using same batch file from datastage not working .my winrar installed in c drive but my datastage installed in d drive ,
so how can i acieve this
please any one suggest me on this
Thanks in advance,
[sigh]basu.ds wrote:I am able to zip a file from command line usind dos command but i am not able to zip using DataStage by using same command
Why not? What syntax did you use and happens when you use it, what error(s) do you get?
Perhaps something like this will help in absense of the above information.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Craig - if you print out the post and hold the sheet of paper to the top of your head, you should be able to use digital osmosis and _know_ what the error message is. I, on the other, hand am going to have to wait for a description of the error message from basu.ds.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
Could you please share the DOS command ti zip and unzip..thru WINRAR?
chulett wrote:[sigh]basu.ds wrote:I am able to zip a file from command line usind dos command but i am not able to zip using DataStage by using same command
Why not? What syntax did you use and happens when you use it, what error(s) do you get?
Perhaps something like this will help in absense of the above information.
@Chulette......the link you shared is useful for EXTRACTING the RAR file....if you have can you pls share same info how to ZIP the file thru WINRAR from command prompt...............
Perhaps something like this will help in absense of the above information.[/quote]
Perhaps something like this will help in absense of the above information.[/quote]