View previous topic :: View next topic
|
Author |
Message |
Rameshs
New User
Joined: 15 Jun 2005 Posts: 53 Location: India, Chennai
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
16,777,215 bytes.
See here. |
|
Back to top |
|
|
a027412
New User
Joined: 05 Jul 2007 Posts: 40 Location: Minneapolis, MN
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
To get the number of occurrences, divide 16,777,215 by the length of an occurrence. |
|
Back to top |
|
|
smaru
New User
Joined: 22 Oct 2008 Posts: 49 Location: India
|
|
|
|
Does the limit 16,777,215 specify for a single occurs table or whole of working storage?? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
smaru
New User
Joined: 22 Oct 2008 Posts: 49 Location: India
|
|
|
|
Sry abt tht... i hav run some test jobs and cleared my query.
Thanks a lot for your time. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
|