Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 8165
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
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us