335 pts.
 AS400 – ZIPPING
hi i have a CSV file in my IFS folder.with size of 5GB.When iam zipping that file with Jar command.it is throwing me the error. java.io.FileNotFoundException: Object is too large to process. /arcbi/pomalw_ php_22022011.csv java/lang/Throwable.[Init](Ljava/lang/String;)V+4 (Throwable.java:90) java/io/FileInputStream.[Init](Ljava/lang/String;)V+28 (FileInputStream .java:64) sun/tools/jar/Main.run([Ljava/lang/String;)Z+107 (Main.java:124) sun/tools/jar/Main.main([Ljava/lang/String;)V+17 (Main.java:904).  I feel zipping is not happening because sie of file is more.when i have tried in another server it happened. I have used this command strqsh('jar cfM /ABC/file.zip /ABC/file.csv') Please let me know how can i solve this issue. Thanks[/init][/init]

Software/Hardware used:
As400 -Shell command
ASKED: February 24, 2011  5:41 AM
UPDATED: February 28, 2011  2:38 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

can you split the folder before zipping it

 7,175 pts.

 

I’m concerned that you’re trying to zip a single file that’s so large. Is someone expecting to unzip this file down the road? If so you’re going to run into resource issues on the other side as well.

Splitting maybe an option. Java is touchy about memory from my experiences, but I don’t have any first hand experience with this and couldn’t find any helpful tips from my resources.

Perhaps someone else will have more luck.

 2,680 pts.

 

I just meant that because it was a CSV file, that he could split the data file, and zip each part. When unzipping, unzip each part, and then combine the pieces.

 7,175 pts.

 

What is the target for the zipped file – some PC environment or same/another System i?
Other options may be available if your goal is to ‘compress’ the file.

DanF

 2,540 pts.

 

Hi Bigkat and Dan

My csv file is of size 5GB…but in other servers i can able to zip the files with the same size.
is there any settings i need to change?

How can i spilt the csv file into two parts and zip it?

My target folder is in the same IFS.

Please let me know,if there is any option of ziiping the csv which is present in iFS.

Thanks

 335 pts.

 

Are you using the Java jar command on the “other servers”? I have zipped files that big using WinZip and another PC utility I can’t remember the name of (something like ZipMagic) I have never actually tried jar on that big of a file.

 7,175 pts.

 

split -h
split: 001-3019 usage: split [-b byte_count[k|m]] [-l line_count] [file ]

 7,175 pts.

 

for more help on split try Split Command

 7,175 pts.