Yorkshireman
3200 pts. | Feb 16 2009 12:05PM GMT
Opening a file is fundamental to any program. RPG makes it easy for the programmer by doing the work for you.
However, you may not want to incur the performance overhead of opening all files at initialisation - or at all.
Consider a program which is general purpose, and could access/update one or two of say a hundred files.
You may want to work out which files to open before having to open them all. then only open the ones required.
Consider if you want to do some work before opening the file - like issuing an override. or checking other stuff and deciding if that file is needed.
Big performance gains can be made in some situations by the programmer manually handling open and close. - equally, big degradations can happen too.
- any textbook should cover the topic. Oh, and the RPG manuals of course..






