Pre runtime array

510 pts.
Tags:
RPGLE array
Hi all I am working on pre runtime array, the from file i am using contains 15,000 records, when i specify the value less than 15,000 in DIM( ) i am getting this error in run time File has too many entries to load the array or table (C D F) but when i changed the DIM element size 15,000 or greater (DIM(15000) it is working how to specify the DIM element size dynamically??. thanks in advance

Software/Hardware used:
AS400 V5R3
ASKED: November 29, 2012  6:38 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    If you use a pre-runtime array, there is no way to handle a dynamic array. It's "pre-runtime". If you need dynamic, allocate memory during runtime and load records into the allocated memory. Dynamic processing can only happen during runtime. -- Tom
    125,585 pointsBadges:
    report
  • dinuas400
    Thanks Tom,can u please suggest some way to avoid this errorFile has too many entries to load the array or table (C D F)
    510 pointsBadges:
    report
  • TomLiotta
    please suggest some way to avoid this error...   A number seem reasonable. The obvious is to declare a larger array.   But I don't know why you're loading records into an array in the first place. Without knowing anything about the purpose, there's no way to know what suggestions make sense.   Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following