View previous topic :: View next topic
|
Author |
Message |
smitha_bdr
New User
Joined: 07 Dec 2007 Posts: 2 Location: Chennai
|
|
|
|
If iam trying to populate an Array with some data, it is giving ABENDU4038.
The Array - element (record) size is 70 and the Array Size is 99,999. It is Abending after populating some 10,074 elements (records).
So to resolve this problem, how can i populate the same data into more than one Array. Even if i populate how can i retrieve data from Multiple Arrays inorder to perform some matching (comparision). |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
First, make sure the input is in sequence by whatever you are going to later search by.
In addition to the multiple arrays, create one "master" array where you store the lowest and highest value of each of the other arrays.
When you need to search, first determine which of the multiple arrays contains the value you are working with and then search that array. |
|
Back to top |
|
|
smitha_bdr
New User
Joined: 07 Dec 2007 Posts: 2 Location: Chennai
|
|
|
|
I don't know the procdure for loading a single file into multiple arrays dynamically.. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You have to write code to read the external file and move the value read into a place in the "current" array. You'll read records up to the "limit" for the current array and then continue with the "next" array.
Quote: |
I don't know the procdure for loading a single file into multiple arrays dynamically |
It will basically be the same code you already have with the exception that it does not work within the single array. It is a little more work than the corrent code, but nothing major. I'd suggest you lay it out with pseudo-code before actually trying to key in and compile the new code.
If you have questions while you are creating your pseudo-code, reply here and someone will have suggestions. |
|
Back to top |
|
|
|