Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

reg. Freemain

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
saravananj

New User


Joined: 23 Nov 2007
Posts: 17
Location: Chennai

PostPosted: Mon Dec 24, 2007 9:21 am    Post subject: reg. Freemain
Reply with quote

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
View user's profile Send private message

Deru Sudibyo
Currently Banned

New User


Joined: 30 Nov 2007
Posts: 6
Location: Indonesia

PostPosted: Mon Dec 24, 2007 2:56 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts GETMAIN / FREEMAIN versus STORAGE OBT... steve-myers PL/I & Assembler 8 Wed Feb 01, 2017 1:45 am
No new posts GETMAIN/FREEMAIN query Suja.Sai CICS 9 Tue Jan 31, 2017 12:01 pm
No new posts Doubt on GETMAIN, FREEMAIN behaviour Arunkumar Chandrasekaran CICS 3 Sun Aug 30, 2015 9:22 pm
No new posts HI how to use getmain and freemain??? santhosh.kumar.vj CICS 1 Tue Oct 11, 2011 10:17 am
No new posts ERROR DURING FREEMAIN SYS CODE = 378-24 Nanda Krishna ABENDS & Debugging 2 Wed May 23, 2007 7:53 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us