View previous topic :: View next topic |
Author |
Message |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Fri Dec 08, 2006 2:19 pm Post subject: length of a table exceeded the maximum supported length |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
|
|