Page 1 of 1

Can I extend my working-storage section?

PostPosted: Mon Dec 17, 2012 6:55 pm
by gopi9348
I have one program. The memory is not enough for working-storage in run time. Because the variables which I decalred in the working storage section is overwritten by some other values after some counts of successful run which is causing abend. And its a never ending BMP.

1) Is there any way to find possible/maximum Working-storage limit?
2)How to overcome this issue?

Guys let me know if you need more information.

Re: Can I extend my working-storage section?

PostPosted: Mon Dec 17, 2012 7:09 pm
by enrico-sorichetti
what about looking at then appropriate COBOL manuals to find out the limits of each countable object and each storage area ???

Re: Can I extend my working-storage section?

PostPosted: Mon Dec 17, 2012 7:15 pm
by BillyBoyo
I doubt that a Cobol limit is the problem. As enrico has said, you can check them, but they are pretty big.

You'll have to explain more about your problem, and show us messages produced and relevant parts of code.

Re: Can I extend my working-storage section?

PostPosted: Mon Dec 17, 2012 7:25 pm
by enrico-sorichetti
most probably some subscript/array-index overflowing!

Re: Can I extend my working-storage section?

PostPosted: Mon Dec 17, 2012 8:09 pm
by Robert Sample
Why are you asking about the limit when you can so easily access the IBM manuals at the top of this page and look up the answer yourself? We're not here to read the manual for you -- it is assumed that you are capable of doing that.

And to echo what others have said, your program (or another program) is writing over your storage and causing your problem -- there is NO chance that the problem is caused by the compiler limits for storage, because if it were your program would not compile successfully. If the program compiled, your program storage is not too big for the compiler.

Re: Can I extend my working-storage section?

PostPosted: Mon Dec 17, 2012 8:16 pm
by dick scherrer
Hello and welcome to the forum,

One of the most common mistakes new developers make if starting down the wrong path to determine the cause(s) of a problem.

Why do you believe there is a problem with the size of your working-storage? What is a "never ending BMP"? This is not a term with which i am familiar.

Hint: In the COBOL manual, there is an entire section on Compiler Limits. At the top and bottom of the page is a link to "IBM Manuals".