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: 7995
Location: Bellevue, IA

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: 7995
Location: Bellevue, IA

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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am


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