View previous topic :: View next topic
|
Author |
Message |
nebivedu
New User
Joined: 02 Sep 2008 Posts: 6 Location: Slovenia
|
|
|
|
Hello.
I have a big problem.
I must create 200 files from one input (delimited) and compress them with PKZIP. Each file must be named (xxx.yyy.counter.XML). That is no problem (-ZIPPED_DSN(*.*,XXX.YYY.COUNTER.XML)). Each file must be added to one big zip (program create one zip dataset and then add each input to this dataset).
I build a program that loops and in each loop program reads input, create parameters for PKZIP and add file to big zip file.
The problem is, that PKZIP compress only 52 files (of 200) and then crash with error:
Quote: |
Insufficient Virtual Storage to handle the file request. |
I tried a lot of PKZIP options, bit the error stays.
What is the parameter for more virtual storage? |
|
Back to top |
|
|
nebivedu
New User
Joined: 02 Sep 2008 Posts: 6 Location: Slovenia
|
|
|
|
Program work like this:
-Begin
--read first
--loop until inp-end
----open output
----write to output
----end of file output
----compress and add output to big zip
----read input
-end |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Consult the manual. |
|
Back to top |
|
|
nebivedu
New User
Joined: 02 Sep 2008 Posts: 6 Location: Slovenia
|
|
|
|
I did:
Application Integration Guide.pdf
Messages Guide.pdf
System Administrators Guide.pdf
Users Guide.pdf
But there is nothing usefull in these four guides. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Maybe –MEMORY_MODEL or –DATA_STORAGE or the -TEMP_* parameters will help.
Thats all in the Users's Guide. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
You're doing this in a Cobol program?
Rather than "adding" each file to the archive (if I've understood it) one at a time, why don't you create all the files, and then add them all at once? |
|
Back to top |
|
|
nebivedu
New User
Joined: 02 Sep 2008 Posts: 6 Location: Slovenia
|
|
|
|
I do not know exactly how many outputs it will be. I am reading DB2 base and sometimes will be only 4 outputs, sometimes 50, but 200 is limit.
i tryed
- MEMORY_MODEL(SMALL|MEDIUM|LARGE) with almoust all -DATA_STORAGE and -TEMP options that i find in guides, But result is the same each time. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Have you contacted the PKZIP vendor for assistance? They most certainly know more about their product then anyone on this forum could. |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
Could it be as simple as adding more region to the job? |
|
Back to top |
|
|
nebivedu
New User
Joined: 02 Sep 2008 Posts: 6 Location: Slovenia
|
|
|
|
Region is 0M |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
nebivedu: I do hope you are aware that many sites limit the amount of memory an applicaiton programmer can request, and thus specifying REGION=0M may or may not be doing what you want; only someone working AT YOUR SITE could tell you. So you haven't added any useful information by telling us your job is using REGION=0M.
And even if your site does honor REGION=0M, the only way you can possibly get a solution to your problem will be to contact the vendor and use the vendor's solution since nobody on this forum has any magic tricks to give your job more memory than the maximum for your site (which is what REGION=0M does if it is not overridden by your site).
The bottom line is that you need to talk to your site support group and the product vendor (in that order) to resolve your problem; asking on this forum will not get you a viable solution for your site. |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
One more wild ass guess: Is the program compiled/linked with DATA(31) RMODE(31)?
Could be you have accidentally restricted it to work 'below the line' with an old set of compile/link JCL. |
|
Back to top |
|
|
|