IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

data overflow in working storage section


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
asmisurs

New User


Joined: 24 Apr 2005
Posts: 2

PostPosted: Thu Apr 03, 2008 3:04 pm
Reply with quote

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
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Thu Apr 03, 2008 3:41 pm
Reply with quote

Quote:
...ws variables to be corrupted

How?

Are you initializing them properly?

More info for limits,
publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?topic=/com.ibm.entcobol4.doc/igym1ch9.htm

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/IGY3LR10/APPENDIX1.2?DT=20020920180651
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Apr 03, 2008 4:03 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Apr 03, 2008 11:29 pm
Reply with quote

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. . . icon_evil.gif

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Apr 03, 2008 11:37 pm
Reply with quote

We have two programmers at the same time trying to overcome stupid designs.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Apr 04, 2008 12:06 am
Reply with quote

Quote:
data overflow is a very nice word to describe poor programming techniques
Loved this line Dick.. icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top