Can I extend my working-storage section?



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Can I extend my working-storage section?

Postby gopi9348 » Mon Dec 17, 2012 6:55 pm

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.
gopi9348
 
Posts: 1
Joined: Mon Dec 17, 2012 5:41 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Can I extend my working-storage section?

Postby enrico-sorichetti » Mon Dec 17, 2012 7:09 pm

what about looking at then appropriate COBOL manuals to find out the limits of each countable object and each storage area ???
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: Can I extend my working-storage section?

Postby BillyBoyo » Mon Dec 17, 2012 7:15 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Can I extend my working-storage section?

Postby enrico-sorichetti » Mon Dec 17, 2012 7:25 pm

most probably some subscript/array-index overflowing!
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: Can I extend my working-storage section?

Postby Robert Sample » Mon Dec 17, 2012 8:09 pm

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.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Can I extend my working-storage section?

Postby dick scherrer » Mon Dec 17, 2012 8:16 pm

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".
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post