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 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: 8119
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: 8119
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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
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


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