How to Read zip file ?
Moderators: chulett, rschirm, roy
How to Read zip file ?
Hi,
I have one requirment, I need to read zip file from source sequential file.My data size is more than 4GB.
Could you please help me how to read zip file?
I have one requirment, I need to read zip file from source sequential file.My data size is more than 4GB.
Could you please help me how to read zip file?
-
- Participant
- Posts: 117
- Joined: Wed Feb 06, 2013 9:24 am
- Location: Chennai,TN, India
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Easiest is to unzip; you can make this a Filter command in the Sequential File stage and read the output of the unzip utility.
Another possibility, if you have a Java class that can read the zip file (which assumes a known format) is to use the Java pack in DataStage to read the file.
Another possibility, if you have a Java class that can read the zip file (which assumes a known format) is to use the Java pack in DataStage to read the file.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Thanks for your Reply...
But, I have tried before job subroutine, Filter command in sequential file and command activity. These are supporting only below 2GB of data. It is not supporting 4GB.When I tried to 4GB of data job is aborted.
Error is :
Sequential_File_0,0: Consumed more than 100,000 bytes looking for record delimiter; aborting.
Could you please help me the same?
But, I have tried before job subroutine, Filter command in sequential file and command activity. These are supporting only below 2GB of data. It is not supporting 4GB.When I tried to 4GB of data job is aborted.
Error is :
Sequential_File_0,0: Consumed more than 100,000 bytes looking for record delimiter; aborting.
Could you please help me the same?
-
- Participant
- Posts: 117
- Joined: Wed Feb 06, 2013 9:24 am
- Location: Chennai,TN, India
Can you please specify what type of file it is.
Fixed length or delimited.
What is the total length of all columns? Do all the records in the file have this length.
Specify all the property mentioned in format tab.
Also try specifying "Number of readers per node" propery in sequential file stage.
Fixed length or delimited.
What is the total length of all columns? Do all the records in the file have this length.
Specify all the property mentioned in format tab.
Also try specifying "Number of readers per node" propery in sequential file stage.
Thanks,
Prasanna
Prasanna
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 15
- Joined: Wed May 02, 2012 3:38 am