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 Array

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
jones.jebaraj84

New User


Joined: 26 Nov 2008
Posts: 10
Location: India

PostPosted: Mon Mar 02, 2009 9:21 pm    Post subject: Maximum Size of COBOL Array
Reply with quote

Hi all,

I need a suggestion. I have a file with record length 17500 and this file is populated into a Array (in a cobol program). Can anyone suggest me what is the maximum no of records in the input file that could be accomodated inside this COBOL internal table?

I searched through our forum and found the below:
No of records possible to be populated into such Cobol table = 16,777,215 / 17500 = 957.99 (approx. 1000)

Is this right... icon_question.gif

Please suggest...
Back to top
View user's profile Send private message

ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Mon Mar 02, 2009 9:41 pm    Post subject:
Reply with quote

http://www.ibmmainframes.com/about10644.html
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8167
Location: East Dubuque, Illinois, USA

PostPosted: Mon Mar 02, 2009 9:42 pm    Post subject:
Reply with quote

It depends on the COBOL compiler version. Enterprise COBOL 3.4 allows 7669 table entries (134,217,727 bytes maximum).
Back to top
View user's profile Send private message
jones.jebaraj84

New User


Joined: 26 Nov 2008
Posts: 10
Location: India

PostPosted: Mon Mar 02, 2009 9:47 pm    Post subject:
Reply with quote

Is this 7669 entries for the cobol 3.4 complier independent of the Record length in the file?

I mean the file that i am using has a records lenght of 17500.. will this have any impact on the size of the array?

Thanks ...!
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: Mon Mar 02, 2009 10:52 pm    Post subject:
Reply with quote

Hello,

At the top of the page is a link to "IBM Manuals". There are manuals for recent versions of mainframe compilers. Select the "Language Reference" for your version and search that manual for "Compiler Limits". All of the limits are listed in that section of the manual.

If you find something that is not clear to you, post what you found and your question. Someone will be able to clarify.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon Mar 02, 2009 11:02 pm    Post subject: Re: Maximum Size of COBOL Array
Reply with quote

jones.jebaraj84 wrote:
No of records possible to be populated into such Cobol table = 16,777,215 / 17500 = 957.99 (approx. 1000)

He also wrote:
Is this 7669 entries for the cobol 3.4 complier independent of the Record length in the file?
No of records possible to be populated into such Cobol table = 134,217,727 / 17500 = 7669.5844 (approx. 7669)
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8167
Location: East Dubuque, Illinois, USA

PostPosted: Mon Mar 02, 2009 11:25 pm    Post subject:
Reply with quote

Quote:
Is this 7669 entries for the cobol 3.4 complier independent of the Record length in the file?
The 134,217,727 limit is independent of any file -- it is a table limit in working storage. Limits on files are different and can also be found in Appendix B of the COBOL Language Reference (manuals link at the top of the page).
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 Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm

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