How I can estimate the amount of memory required for a program?
Compile the program and look at the values!
I have never had to know this. If you estimate that the program would take up "too much memory", then would it not get written? I don't think so. And what is "too much memory" anyway?
If this is a management requirement, suggest that the time taken up in providing such figures before writing the program would be better spent in writing the program and giving more accurate figures afterwards.
Seriously, if it is really necessary, look at compiled programs which use a similar number of files and a similar amount of code. That will give you a better estimate than cold calculation.
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Ask your programming questions--or help out your peers by answering them--in our live discussion forums.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.
Dig Deeper on RPG iSeries programming
Related Q&A from John Blenkinsop
When an error occurs on an IBM command, the diagnostic messages are sent first, then an escape message, which you can monitor. On AS/400 you see the ... Continue Reading
Learn how to 'append data to the file' with the FTP DIR command, and eliminate the hassle of having to end the FTP session and restart to view ... Continue Reading
RPGIV will 'think of' incoming integer fields as binary, and then will redefine them in the program structures as PACKED. So, when you chain a record... Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.