View previous topic :: View next topic
|
Author |
Message |
saravananj
New User
Joined: 23 Nov 2007 Posts: 17 Location: Chennai
|
|
|
|
I have an assembler program that does a getmain at start and uses the storage for saving some work data. And before passing the control back to the operating system it does a freemain on the virtual storage acquired by earlier getmain. After this step I just have a sort step. Now the question is,
What are the advantages in issuing an explicit freemain when my task is the last step in the job?
The "MVS Assembler Services Guide" manual says that all storage acquired by getmain will be freed at the end of task/subtask. I would like to know the advantage of using a freemain in this particular case. |
|
Back to top |
|
|
Deru Sudibyo Currently Banned New User
Joined: 30 Nov 2007 Posts: 6 Location: Indonesia
|
|
|
|
Agreed! VS will automatically released when your task return to the system. However, to code FREEMAIN explicitely is nice to have to keep your code look more prefect. Beside, in case later you have an other module which need to call this module, you don't need to worry about accumulating unused VS. This for sure i got such experience in the past. |
|
Back to top |
|
|
|