MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

length of a table exceeded the maximum supported length

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Fri Dec 08, 2006 2:19 pm    Post subject: length of a table exceeded the maximum supported length Reply with quote

Hai All,

I am facing a problem in defining an internal table with the record entry being 8192 bytes and number of elements being 20000 and i want to store maximum number of elements in a table possible.
Code:

       01 WS-TABLE.                                             
          05 WS-ENTRY     OCCURS 20000 TIMES INDEXED BY WS-IDX.
             10 WS-TEXT   PIC  X(8192) VALUE SPACES.

COMPILE TIME ERROR
IGYDS1187-S   The length of a table exceeded the maximum supported length of 16777215 characters for a data record in the "WORKING-STORAGE SECTION", "LOCAL-STORAGE SECTION" or "LINKAGE SECTION".  The length of the table was truncated to 16777215 characters.

Based on the error code description my conclusion that i cannot define more than 16777215 characters and in my case i am heading to 8192 * 20000 = 163840000 characters.If i want to define say 20000 elements in an array how can i achieve that. Is there any limit to maximum number of elements which can be stored in an array and i want the count of maximum possible count ? Please correct if i am wrong.
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri Dec 08, 2006 2:38 pm    Post subject: Reply with quote

shekar123,

Please search before posting. check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=2400&highlight=compiler+limits

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group