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

maximum size of cobol internal table ?


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

New User


Joined: 15 Jun 2005
Posts: 53
Location: India, Chennai

PostPosted: Tue Apr 25, 2006 6:21 pm
Reply with quote

what is the maximum size of an array ?

can i give

01 REC.
02 ENTRY occurs 10000 times indexed by indx.
03....
03...

Note: Each row is 40 bytes.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Apr 25, 2006 6:32 pm
Reply with quote

16,777,215 bytes.

See here.
Back to top
View user's profile Send private message
a027412

New User


Joined: 05 Jul 2007
Posts: 40
Location: Minneapolis, MN

PostPosted: Fri Sep 12, 2008 6:58 am
Reply with quote

SuperK, Could you please give the count in number of occurences. Is 16,777,215 bytes is equal to 16,777,215 occurences???
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: Fri Sep 12, 2008 7:23 am
Reply with quote

Hello,

To get the number of occurrences, divide 16,777,215 by the length of an occurrence.
Back to top
View user's profile Send private message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Mon Nov 24, 2008 10:06 pm
Reply with quote

Does the limit 16,777,215 specify for a single occurs table or whole of working storage??
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Mon Nov 24, 2008 10:45 pm
Reply with quote

Hi,

I didn't get your question - what does "whole working storage" mean ? If you have only the table definition (OCCURS) in your Working -Storage, so yes that can be correct.
Back to top
View user's profile Send private message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Mon Nov 24, 2008 10:47 pm
Reply with quote

Sry abt tht... i hav run some test jobs and cleared my query.

Thanks a lot for your time.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


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

PostPosted: Mon Nov 24, 2008 11:24 pm
Reply with quote

smaru wrote:
Sry abt tht... i hav run some test jobs and cleared my query.

Thanks a lot for your time.


Try looking in the cobol manual! It quicker & cheaper.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Nov 24, 2008 11:45 pm
Reply with quote

If you check the manuals link at the top of the page, find the COBOL Language Reference manual, and look in Appendix B you will find the compiler limits. The current compiler has a limit of 128 megabytes (134,217,727 bytes) for all working storage items (not external) and the same for external items.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Load new table with Old unload - DB2 DB2 6
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top