AS400 – ZIPPING

335 pts.
Tags:
AS/400
AS/400 Compression
File compression
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

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 9  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • BigKat
    can you split the folder before zipping it
    7,935 pointsBadges:
    report
  • slack400
    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,705 pointsBadges:
    report
  • BigKat
    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,935 pointsBadges:
    report
  • DanTheDane
    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,555 pointsBadges:
    report
  • iiiiiiiiiiiii
    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 pointsBadges:
    report
  • BigKat
    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,935 pointsBadges:
    report
  • BigKat
    split -h split: 001-3019 usage: split [-b byte_count[k|m]] [-l line_count] [file ]
    7,935 pointsBadges:
    report
  • BigKat
    for more help on split try Split Command
    7,935 pointsBadges:
    report
  • iiiiiiiiiiiii
    [...] AS400 - Zipping [...]
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following