reading a zip file

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Hope
Participant
Posts: 97
Joined: Sun May 13, 2007 2:51 pm
Contact:

reading a zip file

Post by Hope »

I have a source which is a zip file. I have to copy the data from source to target.I am using gunzip filename in before job subroutine and then reading the file. If the file is too big the job gets aborted with error "File is too large". Is there any other way to read a zip file?.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Use an external command stage with the command "gunzip {filename} -". That way you don't need to store the expanded file on disk and won't get the disk full condition (at least not from unzipping, you might get it when you write your output data)
Post Reply