Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.
Andy Mansell | Dec 14 2007 2:29PM GMT
This very much depends on the requirements.
Will you need to access the data for every record on the file?
Will the file ever get bigger than the small number of records.
With the speed of todays processors the overhead will be very low any way.
A general rule of thumb tho is ‘ if you need to use the data , retrieve the data from the file. It may be quicker to access to an array and read the data from that array. Depending on the number of reads you will be doing from the file…. Is it possible you will read the same record numerous times etc.
If you never need to read the data use SETLL to verify the record exists, the save will be small but it will be easier for other programmers to see what and why you are doing what you are doing