Regarding Zipping folders or files through a sequential job.

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
SwathiVineela
Participant
Posts: 9
Joined: Mon Mar 03, 2008 1:30 am
Location: India

Regarding Zipping folders or files through a sequential job.

Post by SwathiVineela »

Hi all,

I would like to archive files with minimal space while archiving.
I have searched in the forums for a command for zipping a folder in datastage.

Do anyone know a command used to zip a folder through "ExecuteCommand" stage?

Could anyone please help me with this?

Thanks in advance..

Regards,
Vineela
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

WinZip has a command line interface, as do other Windows compression programs. These commands can all be called through from inside DataStage sequence jobs.
SwathiVineela
Participant
Posts: 9
Joined: Mon Mar 03, 2008 1:30 am
Location: India

Post by SwathiVineela »

Hi

I have used a command called "zip" and passed parameters as "TARGETDIR\FILEPATTERN" in an "ExecuteCommand" stage.

Size has come from 24 kb to 4 kb.. but still files in that folder are not ".zip" extension.

Could anyone please help me with this?

Regards,
Vineela
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Check your syntax - you'll need to specify the extension on the "zip" file in the command you issue.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply