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
 

 

maximum size of cobol internal table ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: maximum size of cobol internal table ?
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

Moderator Team Head


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

PostPosted: Tue Apr 25, 2006 6:32 pm    Post subject: Re: maximum size of cobol internal table ?
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    Post subject: Reply to: maximum size of cobol internal table ?
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

Site Director


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

PostPosted: Fri Sep 12, 2008 7:23 am    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Mon Nov 24, 2008 10:45 pm    Post subject:
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    Post subject:
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    Post subject:
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Mon Nov 24, 2008 11:45 pm    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


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