Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

data overflow in working storage section

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: data overflow in working storage section
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: 785
Location: Chennai, India

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

Quote:
...ws variables to be corrupted

How?

Are you initializing them properly?

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

http://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    Post subject:
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

Site Director


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

PostPosted: Thu Apr 03, 2008 11:29 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Fri Apr 04, 2008 12:06 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sorting group data rajella DFSORT/ICETOOL 4 Sun Jan 22, 2017 11:32 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts ESQA overflow - high ECSA utilization vasanthz All Other Mainframe Topics 1 Thu Dec 29, 2016 7:06 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us