Unzip a file in Linux from DataStage Execute Command

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
vgundavarapu
Premium Member
Premium Member
Posts: 22
Joined: Wed May 08, 2013 8:38 am
Contact:

Unzip a file in Linux from DataStage Execute Command

Post by vgundavarapu »

Hi All,

I am trying to unzip a file (sample.zip) in Linux server from DataStage using the following command, but it is not unzipping and I am not getting any error.
Basically I need to unzip any kind of compressed file. I can go with any kind of options. Please help me on this.

ex:

unzip /data/sample.zip



Thanks,
Venkata
Thanks,
Venkata Gundavarapu
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Why don't we start with... the error(s) you get. I could guess but I'd rather not.
-craig

"You can never have too many knives" -- Logan Nine Fingers
vgundavarapu
Premium Member
Premium Member
Posts: 22
Joined: Wed May 08, 2013 8:38 am
Contact:

Unzip a file in Linux from DataStage Executive Command

Post by vgundavarapu »

I didn't get any error. It is saying that it is processed.


Thanks,
Venkata
Thanks,
Venkata Gundavarapu
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sorry - missed that part. So I would wager it is working fine just not putting the files where you'd really like them. Have you looked in the Project directory? Without directions to the contrary in your unzip command, the files will end up in the "current working directory" which for a running job is the project it lives in. Use the -d option to specify the target directory.
-craig

"You can never have too many knives" -- Logan Nine Fingers
vgundavarapu
Premium Member
Premium Member
Posts: 22
Joined: Wed May 08, 2013 8:38 am
Contact:

Unzip a file in Linux from DataStage Execute Command

Post by vgundavarapu »

Thank you Craig,

The following option is working fine for me.

Use the -d option to specify the target directory.


Thank you again.





Thanks,
Venkata
Thanks,
Venkata Gundavarapu
Post Reply