What is Cancel command in COBOL used for?

2 posts / 0 new
Last post
Anonymous (not verified)
What is Cancel command in COBOL used for?

 

 

I have seen some COBOL programs using "Cancel" command, but I really do not understand the purpose of using a CANCEL command.

 

-Rajesh

"; ; ; ;
Anonymous (not verified)
Cancel Verb in cobol

The CANCEL verb is only used after you have finished using a dynamicly CALLed sub-program.  The dynamic call will LOAD the sub-program into memory then execute it.  
It will remain in memory until you STOP RUN or tell the system to remove it by CANCEL Dynamic-name.
If you are short on memory or the module is very large and you now need the memory for something else, such as a large SORT, then CANCEL it.  Otherwise, CANCEL is of no practical use today with very large memory systems.

 

Thanks,

MSReddy

Log in or register to post comments
Sponsored Listing

Click the +1 button  below to share it with your friends and colleagues

 

Share this if you liked it!

 

Disclaimer

Navigation