All these days, I was under the assumption that *INLR closes the open files and releases storage used by a program. Until now when I read an IBM material that said, it does close open files and reinitializes variables but does not release the storage for system's further use (unless the activation group ends or the sub system is brought down or IPL is done). So, my question is:
If the storage doesn't get released and just keeps on getting used up throughout the day, wouldn't the system run into a memory shortage (this might be a stupid question but its just because am not really aware of AS400 system technicalities). The first thing that comes into my mind and frightens me is: "What if it behaves like WINDOWS (run 5/10 normal applications together and you get a system that doesn't respond, works real slow and gets onto your nerves)." I have always believed AS400 ain't this way and always hope it to remain so.
Or is it that AS400 has a different memory allocation mechanism that we will never run into memory shortage or memory leaks? Could someone please clarify this for me?