View previous topic :: View next topic
|
Author |
Message |
asmisurs
New User
Joined: 24 Apr 2005 Posts: 2
|
|
|
|
Hi,
This is regarding overflow of data in working storage section. The program reads an input file which the data is keep on adding for every batch run. The input file is read into a table/array which is declared in working storage section. The overflow of data is causing other ws variables to be corrupted. For temporary solution we are using fillers after the table declaration for additional storage of data.
Could some one let me know is there any alternate way to handle the data in working storage section? What will be the maximum storage can working storage section can accomodate?
Your inputs and thouhts into this is really appreciable.
Thanks,
Sasi.
Bangalore |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
normally, as an internal cobol table is loaded, one keeps track of the items added and compares against the max num items the table can contain. when this limit is reached, a useful message is displayed and the job is terminated.
data overflow is a very nice word to describe poor programming techniques |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Why is an entire "large" file being read into working-storage? Sometimes an ok thing to do, but usually not.
Please do not say that it so that it can be compared against some other file. . . This is a terrible programming practice. . .
If you explain what the process does, we may be able to offer alternate suggestions.
Even if you fix the sloppy code that allows storage to be walked on, you will still have the issue of the size of the file growing. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
We have two programmers at the same time trying to overcome stupid designs. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Quote: |
data overflow is a very nice word to describe poor programming techniques |
Loved this line Dick.. |
|
Back to top |
|
|
|