
Reply to comment
Reply
Click the +1 button below to share it with your friends and colleagues
Share this if you liked it!
Click the +1 button below to share it with your friends and colleagues
t-decoration:none;text-underline:none'>IBM DB2 Certification
LOGOUT
Number of Registered users 713
|
I speak under correction, but in all probability a dynamically called program will remain in memory even after return to the calling program until the operating system decides that it needs the memory that the program is taking up.
You can cause the program to be removed earlier by issuing a cancel command in the calling program, but the OS might still not unload the program unless it is short on memory, or until the unit of work is complete.
if you are asking this question because you are calling the program many times and not getting the working storage in it's initial state, then you need to add a "program is initial" statement somehow int the identification division or environment division, i can't recall exactly where, do some research to find out!.